aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-02-06 18:47:03 +0000
committerTimo Teräs <timo.teras@iki.fi>2018-02-07 15:26:12 +0000
commitcc575120c2001dbf6679797cd4d749a3c75944bc (patch)
tree94f21ac44ab5e82e5df9c2a44dfda4747719e0ce /main
parenta776c466e973de4620cb28883f3bbd9a5ebf2947 (diff)
downloadaports-cc575120c2001dbf6679797cd4d749a3c75944bc.tar.bz2
aports-cc575120c2001dbf6679797cd4d749a3c75944bc.tar.xz
main/cabextract: modernize and add simple check
Add a simple test as upstream doesn't provide a test suite.
Diffstat (limited to 'main')
-rw-r--r--main/cabextract/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/main/cabextract/APKBUILD b/main/cabextract/APKBUILD
index b954fb03d6..b1f72f44b3 100644
--- a/main/cabextract/APKBUILD
+++ b/main/cabextract/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=cabextract
pkgver=1.6
-pkgrel=1
+pkgrel=2
pkgdesc="Tool for extracting Microsoft cabinet files"
url="https://www.cabextract.org.uk/"
arch="all"
@@ -10,9 +10,10 @@ subpackages="$pkgname-doc"
makedepends="libmspack-dev"
source="https://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/${pkgname}-${pkgver}
-build () {
- cd $builddir
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -24,8 +25,13 @@ build () {
make
}
+check() {
+ cd "$builddir"
+ ./cabextract --version > /dev/null
+}
+
package() {
- cd $builddir
+ cd "$builddir"
make DESTDIR="$pkgdir" install
}