aboutsummaryrefslogtreecommitdiffstats
path: root/main/email2trac/APKBUILD
blob: 6e788d8f7261fb62a8e75cb56467e27b36415102 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=email2trac
pkgver=2.5.0
pkgrel=1
pkgdesc="Utilities for converting emails to trac tickets"
url="https://subtrac.sara.nl/oss/email2trac"
arch="all"
license="GPL-2.0-or-later"
depends="trac"
makedepends="python2"
install=""
subpackages=""
source="ftp://ftp.sara.nl/pub/outgoing/email2trac-$pkgver.tar.gz"
options=suid

_builddir="$srcdir"/email2trac-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-trac_user=tracd \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="c0c15ec41f8981abdc7165bc3f87c9e8f73fa5500466ef6d191ebc77d75086a5943cf3cfd27e0d5eb972090baee8479b8cee53d146fbf05b9124f5ee0bcf3952  email2trac-2.5.0.tar.gz"