diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-22 13:27:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-22 13:28:16 +0000 |
commit | df91fb7832ff98522e5cdd6bf086cd854b7a7046 (patch) | |
tree | 03543813a7dbf3066cdae85742d47c5ef155be6f /main/libmspack | |
parent | 214cb233279c7ef0221557f24d0d0af79a46d3b7 (diff) | |
download | aports-df91fb7832ff98522e5cdd6bf086cd854b7a7046.tar.bz2 aports-df91fb7832ff98522e5cdd6bf086cd854b7a7046.tar.xz |
main/libmspack: modernize
Diffstat (limited to 'main/libmspack')
-rw-r--r-- | main/libmspack/APKBUILD | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/main/libmspack/APKBUILD b/main/libmspack/APKBUILD index 2445406957..baaf8ac2c5 100644 --- a/main/libmspack/APKBUILD +++ b/main/libmspack/APKBUILD @@ -14,7 +14,7 @@ install="" subpackages="$pkgname-dev" source="https://www.cabextract.org.uk/libmspack/libmspack-$_ver.tar.gz" -_builddir="$srcdir"/libmspack-$_ver +builddir="$srcdir"/libmspack-$_ver # secfixes: # 0.7.1_alpha-r0: @@ -26,18 +26,8 @@ _builddir="$srcdir"/libmspack-$_ver # - CVE-2017-6419 # - CVE-2017-11423 -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -45,16 +35,20 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - --disable-static \ - || return 1 + --disable-static # parallel build workaround make libmspack.la libmscabd.la libmschmd.la make } +check() { + cd "$builddir" + make check +} + package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } sha512sums="e903629a34c29099a261a108e4eb9cda485ab999bbc3383e3cd6a39715077d00b26a1c641b0f3df0eef60d2e15a7ef623379df0cfe25b99d4eda080529ffec7b libmspack-0.7.1alpha.tar.gz" |