diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-15 02:20:06 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:44 +0000 |
commit | 2d28bfe93da1629afdcceb75204d9527eee4dea1 (patch) | |
tree | cf1bd3ed8f4e720b3b85e7567b1a80fa36367f7e /main/file/APKBUILD | |
parent | 0afb0e05fb4cc51d91edd19d63e305d57d98d10c (diff) | |
download | aports-2d28bfe93da1629afdcceb75204d9527eee4dea1.tar.bz2 aports-2d28bfe93da1629afdcceb75204d9527eee4dea1.tar.xz |
main/file: add tests and modernise
Diffstat (limited to 'main/file/APKBUILD')
-rw-r--r-- | main/file/APKBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/main/file/APKBUILD b/main/file/APKBUILD index d52f604543..5770150527 100644 --- a/main/file/APKBUILD +++ b/main/file/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=file pkgver=5.31 -pkgrel=0 +pkgrel=1 pkgdesc="File type identification utility" url="http://www.darwinsys.com/file/" arch="all" @@ -17,15 +17,18 @@ build() { --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --datadir=/usr/share \ - || return 1 - make || return 1 - make tests || return 1 + --datadir=/usr/share + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install } libmagic() { |