diff options
author | Adrian Perez de Castro | 2024-05-06 14:08:53 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2024-05-06 14:08:53 +0300 |
commit | b6ceca4f0b4707607190f058f1055422950c18ea (patch) | |
tree | 324792ccf7fe58280a7dad16e66e842bd7165cb0 | |
parent | 8704eac20e6b813dd5d10c10db949ae5eaffa195 (diff) | |
download | aur-b6ceca4f0b4707607190f058f1055422950c18ea.tar.gz |
Bump to version 0.99
Update to version 0.99 and use tarballs again now that they include the
test suite. The test suite does not yet pass, nevertheless this also
arranges running it in preparation for when it starts passing outside
of OpenBSD.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 35 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = gameoftrees pkgdesc = A version control system which prioritizes ease of use and simplicity over flexibility - pkgver = 0.98.2 + pkgver = 0.99 pkgrel = 1 url = https://gameoftrees.org arch = x86_64 @@ -17,7 +17,7 @@ pkgbase = gameoftrees conflicts = got conflicts = got-git conflicts = got-bin - source = gameoftrees::git+ssh://anonymous@got.gameoftrees.org/got-portable.git#tag=0.98.2 - b2sums = 964eeff66bf9d4a82fa01cedb66e0bfc1bc85a082eae2af6f4fc0a808df574534a9b3c9e0aa75a8f1e57f8d9a35e0c4d428bef9f98bd72a3b3fe73f6fe8aa524 + source = https://gameoftrees.org/releases/portable/got-portable-0.99.tar.gz + b2sums = 6dcf07a4b80729e400a26aa9ae2a90ecc7eda25a9dc4bf8381f2eeaf81da01ec2b5a8e9538c5db5a022e833bcd10522f0fb744a18023420c4ccb83fe2fd660b8 pkgname = gameoftrees @@ -1,7 +1,7 @@ # Maintainer: Adrian Perez de Castro <aperez@igalia.com> pkgname=gameoftrees -pkgver=0.98.2 +pkgver=0.99 pkgrel=1 pkgdesc='A version control system which prioritizes ease of use and simplicity over flexibility' arch=(x86_64) @@ -10,36 +10,50 @@ license=(ISC) conflicts=(gameoftrees-git got got-git got-bin) depends=(ncurses util-linux-libs libbsd libevent zlib libretls) makedepends=(pkgconf git) -source=("$pkgname::git+ssh://anonymous@got.gameoftrees.org/got-portable.git#tag=$pkgver") -b2sums=('964eeff66bf9d4a82fa01cedb66e0bfc1bc85a082eae2af6f4fc0a808df574534a9b3c9e0aa75a8f1e57f8d9a35e0c4d428bef9f98bd72a3b3fe73f6fe8aa524') +#checkdepends=(oksh perl) +source=("$url/releases/portable/got-portable-$pkgver.tar.gz") +b2sums=('6dcf07a4b80729e400a26aa9ae2a90ecc7eda25a9dc4bf8381f2eeaf81da01ec2b5a8e9538c5db5a022e833bcd10522f0fb744a18023420c4ccb83fe2fd660b8') + +prepare () { + rm -rf build + mkdir build + + # + # Test suites expect /bin/sh to be OpenBSD ksh, which is available + # as the "oksh" package. Change the shebang in testing scripts. + # + return + cd "got-portable-$pkgver" + sed -i -e '1s/\/sh$/\/oksh/' \ + regress/cmdline/*.sh \ + regress/gotd/*.sh \ + regress/tog/*.sh +} build () { - cd "$pkgname" - autoreconf -f -i -v - ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/$pkgname \ + cd build + "../got-portable-$pkgver/configure" \ + --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/$pkgname \ --enable-gotd --with-gotd-empty-path=/var/empty make } -check () { +# TODO: Investigate why many tests still fail +_check () { # # We need a different build that can be installed to a local prefix # directory, because the test suite will pick binaries from $PATH. # - # Also, /bin/sh is expected to be OpenBSD ksh, which is available - # as the "oksh" package, but we need to either make it be /bin/sh or - # change the shebangs in testing scripts. - # - msg2 'TODO: Investigate whether test can be made to run' - return 0 - - cd "$pkgname" - make tests + cd "got-portable-$pkgver" + local prefix="$(pwd)/_prefix" + ./configure --prefix="$prefix" + make install + PATH="$prefix/bin:$PATH" make tests } package () { - cd "$pkgname" - make DESTDIR="$pkgdir" install + make -Cbuild DESTDIR="$pkgdir" install + cd "got-portable-$pkgver" install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" \ README README.portable TODO } |