aboutsummaryrefslogtreecommitdiffstats
path: root/main/file/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-15 02:20:06 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:44 +0000
commit2d28bfe93da1629afdcceb75204d9527eee4dea1 (patch)
treecf1bd3ed8f4e720b3b85e7567b1a80fa36367f7e /main/file/APKBUILD
parent0afb0e05fb4cc51d91edd19d63e305d57d98d10c (diff)
downloadaports-2d28bfe93da1629afdcceb75204d9527eee4dea1.tar.bz2
aports-2d28bfe93da1629afdcceb75204d9527eee4dea1.tar.xz
main/file: add tests and modernise
Diffstat (limited to 'main/file/APKBUILD')
-rw-r--r--main/file/APKBUILD15
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() {