mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/mktorrent: modernize and add simple check
Add a simple test as upstream doesn't provide a test suite.
This commit is contained in:
parent
2f7ca837e9
commit
3ec83758f6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user