community/mktorrent: modernize and add simple check

Add a simple test as upstream doesn't provide a test suite.
This commit is contained in:
Roberto Oliveira 2017-12-07 19:23:54 +00:00
parent 2f7ca837e9
commit 3ec83758f6

View File

@ -2,20 +2,25 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mktorrent
pkgver=1.1
pkgrel=0
pkgrel=1
pkgdesc="A handy tool for creating .torrent files"
url="http://borg.uu3.net/~borg/?mktorrent"
arch="all"
license="BSD"
depends=""
makedepends="libressl-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rudde/mktorrent/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
make || return 1
make
}
check() {
cd "$builddir"
./mktorrent -h > /dev/null
}
package() {