diff options
Diffstat (limited to 'pcr/guile-git-lib/PKGBUILD')
-rw-r--r-- | pcr/guile-git-lib/PKGBUILD | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/pcr/guile-git-lib/PKGBUILD b/pcr/guile-git-lib/PKGBUILD index fd5cb27d3..80b29bbcf 100644 --- a/pcr/guile-git-lib/PKGBUILD +++ b/pcr/guile-git-lib/PKGBUILD @@ -1,49 +1,56 @@ -# Maintainer (AUR): lantw44 (at) gmail (dot) com +# Maintainer (aur): lantw44 (at) gmail (dot) com +# Maintainer: Parabola Hackers <dev@lists.parabola.nu> # parabola changes and rationale: -# - disabled tests due to faililng 'clone' test +# - disabled tests due to failing tests pkgname=guile-git-lib _pkgname=guile-git -pkgver=0.3.0 -pkgrel=1 +pkgver=0.5.2 +pkgrel=2 pkgdesc='Guile bindings for libgit2' arch=('x86_64' 'i686' 'armv7h') url="https://gitlab.com/guile-git/guile-git" license=('GPL3') -depends=('guile' 'guile-bytestructures' 'libgit2') +depends=('guile' 'guile-bytestructures' 'libgit2>=0.28.0') makedepends=('git') source=( - "https://gitlab.com/${_pkgname}/${_pkgname}/uploads/4c563d8e7e1ff84396abe8ca7011bcaf/${_pkgname}-${pkgver}.tar.gz" - "https://gitlab.com/guile-git/guile-git/-/raw/v${pkgver}/tests/.ssh/id_rsa_client" - "https://gitlab.com/guile-git/guile-git/-/raw/v${pkgver}/tests/.ssh/id_rsa_client.pub" - "https://gitlab.com/guile-git/guile-git/-/raw/v${pkgver}/tests/.ssh/id_rsa_server") + "${pkgname}-${pkgver}.tar.gz::https://gitlab.com/${_pkgname}/${_pkgname}/uploads/6450f3991aa524484038cdcea3fb248d/${_pkgname}-${pkgver}.tar.gz" + "${pkgname}-merge-31-fix-clone-tests.patch" + "${pkgname}-merge-32-libgit2-1.2.0.patch") sha256sums=( - '75ce437da024fa57d6a2a48ae4e05d48cb42d84f73a3d372baef5c68421bb130' - 'e58e37ec6d5916b46b785b9db5ae05498e5dc25b1beaa46eee227bf415fee952' - '8a3b18d1d725f69ab778e0badbc43746766b591a54f965ee2e57d82822775d43' - '0d49a22bd80c3d1d18061560eecb095c0056ade55fee2fb4c48c290254204641') + '949755a211ad6e905ecdebe66ca35bfaab638d985b9fadc928ad2538d8f5cc95' + '15633944c4177fe5f79b97124d3b2c35739ecbe4246305fc2f8271be95b6e3c9' + 'f353c23e2dae27a715d9dae04bfd269c9262e221082b959e0721e2c4471a7eeb') prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" - mkdir tests/.ssh - cp \ - "${srcdir}/$(basename "${source[1]}")" \ - "${srcdir}/$(basename "${source[2]}")" \ - "${srcdir}/$(basename "${source[3]}")" \ - tests/.ssh + local source_file + for source_file in "${source[@]}"; do + case "${source_file}" in + *.patch) + patch -p1 < "${srcdir}/${source_file}" + ;; + esac + done } build() { cd "${srcdir}/${_pkgname}-${pkgver}" + autoreconf -fi ./configure --prefix=/usr make } -# check() { -# cd "${srcdir}/${_pkgname}-${pkgver}" -# make check -# } +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # FAIL: tests/clone.scm - clone-auth-ssh-credentials + # FAIL: tests/clone.scm - clone-auth-ssh-agent + # FAIL: tests/clone.scm - clone-and-fetch-auth-ssh-credentials + # FAIL: tests/clone.scm - clone + transfer-progress + # make check +} package() { cd "${srcdir}/${_pkgname}-${pkgver}" |