aboutsummaryrefslogtreecommitdiffstats
path: root/main/opentracker/APKBUILD
blob: e94be5e08af547fb4d0bbb87f5168f28d04ccfa6 (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
# Contributor: 
# Maintainer: 
pkgname=opentracker
pkgver=0_cvs20100625
pkgrel=1
pkgdesc="an open and free bittorrent tracker"
url="http://erdgeist.org/arts/software/opentracker/"
arch="x86 x86_64"
license="GPL"
depends=
makedepends="libowfat-dev"
install="$pkgname.pre-install"
subpackages=
source="http://dev.alpinelinux.org/opentracker/opentracker-$pkgver.tar.gz
	opentracker.initd"

_builddir="$srcdir"/$pkgname
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -d "$pkgdir"/usr/bin
	make BINDIR="$pkgdir"/usr/bin install || return 1
	install -m644 -D opentracker.conf.sample \
		"$pkgdir"/etc/opentracker/opentracker.conf
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="8d02a6f7a241c6b8c98e2dbde086cfcf  opentracker-0_cvs20100625.tar.gz
1e1e687e78959833463ceb55101a3173  opentracker.initd"