aboutsummaryrefslogtreecommitdiffstats
path: root/community/mktorrent/APKBUILD
blob: a45a4561c7aa1cb064adc40865e6487a4cac7f17 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:  Francesco Colista <fcolista@alpinelinux.org>
pkgname=mktorrent
pkgver=1.1
pkgrel=2
pkgdesc="A handy tool for creating .torrent files"
url="https://github.com/Rudde/mktorrent"
arch="all"
license="BSD"
makedepends="openssl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rudde/mktorrent/archive/v$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	./mktorrent -h > /dev/null
}

package() {
	cd "$builddir"
	install -D -m755 mktorrent $pkgdir/usr/bin/mktorrent
	install -D -m644 COPYING $pkgdir/usr/share/licenses/mktorrent/COPYING
}

sha512sums="2a7ce83950711cf5be098693ad79273b29bcd8a5ef345ea296c7b6b83c532dd3463b347c7137234f1890cb4ea663ee5a5b1878591bc8fb4386d94e4f65410859  mktorrent-1.1.tar.gz"