diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-21 16:58:48 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-01-23 21:50:27 +0000 |
commit | f5ddd997f3af6c2a499d2cc50bc3b6d5b88ec97e (patch) | |
tree | 6bd855abb6cab0f569b864bfc53bad668f5da9e1 /main/dtach | |
parent | a3509d779e928b0c8ceeec3b7b66da8d350019f7 (diff) | |
download | aports-f5ddd997f3af6c2a499d2cc50bc3b6d5b88ec97e.tar.bz2 aports-f5ddd997f3af6c2a499d2cc50bc3b6d5b88ec97e.tar.xz |
main/dtach: modernize and add simple check
Add a simple test as upstream doesn't provide a test suite.
Diffstat (limited to 'main/dtach')
-rw-r--r-- | main/dtach/APKBUILD | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/main/dtach/APKBUILD b/main/dtach/APKBUILD index 6a17cf200b..e15b3cac5d 100644 --- a/main/dtach/APKBUILD +++ b/main/dtach/APKBUILD @@ -1,36 +1,35 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=dtach pkgver=0.9 -pkgrel=0 +pkgrel=1 pkgdesc="A program that emulates the detach feature of screen" url="http://dtach.sourceforge.net" arch="all" -license='GPL' -depends="" -makedepends="" +license="GPL" source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz" subpackages="$pkgname-doc" -builddir="$srcdir"/dtach-$pkgver +builddir="$srcdir/$pkgname-$pkgver" + build() { cd "$builddir" - ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make } -package() { +check() { cd "$builddir" + ./dtach --help > /dev/null +} - install -Dm755 dtach "$pkgdir"/usr/bin/dtach || return 1 - install -Dm644 dtach.1 "$pkgdir"/usr/share/man/man1/dtach.1 || return 1 +package() { + cd "$builddir" + install -Dm755 dtach "$pkgdir"/usr/bin/dtach + install -Dm644 dtach.1 "$pkgdir"/usr/share/man/man1/dtach.1 install -Dm644 README "$pkgdir"/usr/share/doc/dtach/README } -md5sums="6dac9c0f96d7d55ea56c01504b23faf6 dtach-0.9.tar.gz" -sha256sums="32e9fd6923c553c443fab4ec9c1f95d83fa47b771e6e1dafb018c567291492f3 dtach-0.9.tar.gz" sha512sums="28c13dc8c96c16b9c6153a3a11fdeb4a4bc72e84e1f2575043b047cd8e600a47232f29544ffd87d82e2575623ec2e999a26e23e9eac25ec81c7722bdf98cfb18 dtach-0.9.tar.gz" |