blob: 2fe7a965a3b521d8921a17f596f49834dd69d054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=gameoftrees
pkgver=0.108
pkgrel=1
pkgdesc='A version control system which prioritizes ease of use and simplicity over flexibility'
arch=(x86_64)
url="https://gameoftrees.org"
license=(ISC)
conflicts=(gameoftrees-git got got-git got-bin)
depends=(ncurses util-linux-libs libbsd libevent zlib libretls)
makedepends=(pkgconf git)
#checkdepends=(oksh perl)
source=("$url/releases/portable/got-portable-$pkgver.tar.gz")
b2sums=('2c060842f07ae8a5941bfbc8138e18e8e9f99d554377c7a4f72fdebfe1b6cd164bca1b023e449f926876d3d24ad3565434cf7dd56194bb2e97ed40fc06734eea')
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 build
"../got-portable-$pkgver/configure" \
--prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/$pkgname \
--with-gotd-empty-path=/var/empty
make
}
# 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.
#
cd "got-portable-$pkgver"
local prefix="$(pwd)/_prefix"
./configure --prefix="$prefix"
make install
PATH="$prefix/bin:$PATH" make tests
}
package () {
make -Cbuild DESTDIR="$pkgdir" install
cd "got-portable-$pkgver"
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" \
README README.portable TODO
}
|