aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnats/APKBUILD
blob: b5b7cca0717de68aefa9c8807c8faa4f1bd03186 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnats
pkgver=4.1.0
pkgrel=6
pkgdesc="The GNU Bug Tracking System"
url="http://www.gnu.org/software/gnats/"
arch="all"
license="GPL-2"
depends="postfix"
makedepends="texinfo"
install=
source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	gnats.pre-install"
subpackages="$pkgname-doc"
options=suid
pkgusers="gnats"
pkggroups="gnats"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	AWK=awk ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--sharedstatedir=/var/lib \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1

	make || return 1
}
package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
	rm -f "$pkgdir"/gnats.el
}

md5sums="2add3df79336f2e193c8a9a513aefe22  gnats-4.1.0.tar.gz
4ccae685ca8d5ed857c2a26f1e2fbc7c  gnats.pre-install"