blob: d6b7806c58f57b6c9419aae472ff7651fe161bc3 (
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
60
61
|
pkgname=geneweb-git
pkgver=20170321
pkgrel=2
pkgdesc="Genealogy Software"
arch=('i686' 'x86_64')
url="http://www.geneweb.org/"
license=('GPL')
groups=()
depends=('glibc')
makedepends=('git' 'ocaml' 'camlp5')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!makeflags)
install=geneweb.install
changelog=
# Makefile.fixed-install is a temporary hack until pull request
# https://github.com/geneweb/geneweb/pull/509 is merged
source=(gwd.conf gwd.service geneweb.install)
noextract=()
md5sums=('8219a070e2bbf6aaeeb9c0f42825720d'
'a89d188febe37b82ab7d936a7cafccc2'
'42c8da80f6b1e24f0cd3243840574d58')
_gitroot=https://github.com/geneweb/geneweb
_gitname=geneweb
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
./configure
make PREFIX=/usr opt
}
package() {
cd "$srcdir/$_gitname-build"
make PREFIX="$pkgdir/usr" MANDIR="$pkgdir/usr/share/man/man1" install
install -D -m 644 "$srcdir/gwd.service" "$pkgdir/usr/lib/systemd/system/gwd.service"
install -D -m 644 "$srcdir/gwd.conf" "$pkgdir/etc/conf.d/gwd"
}
# vim:set ts=2 sw=2 et:
|