aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 23:51:18 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-17 13:33:31 +0000
commit8d4f547db4d45aa603aefd35027f5fb0166de529 (patch)
tree6438c54d9ed260398288c793840f786dcc13c194
parent3d171721b688c0ca909614cf9caa8688e317e999 (diff)
downloadaports-8d4f547db4d45aa603aefd35027f5fb0166de529.tar.bz2
aports-8d4f547db4d45aa603aefd35027f5fb0166de529.tar.xz
main/libsndfile: modernise, add check
-rw-r--r--main/libsndfile/APKBUILD29
1 files changed, 12 insertions, 17 deletions
diff --git a/main/libsndfile/APKBUILD b/main/libsndfile/APKBUILD
index 203dbf95eb..8f052e8f5f 100644
--- a/main/libsndfile/APKBUILD
+++ b/main/libsndfile/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsndfile
pkgver=1.0.28
-pkgrel=2
+pkgrel=3
pkgdesc="A C library for reading and writing files containing sampled sound"
url="http://www.mega-nerd.com/libsndfile"
arch="all"
@@ -30,32 +30,27 @@ source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz
# - CVE-2017-8363
# - CVE-2017-8365
-_builddir="$srcdir/$pkgname-$pkgver"
-build () {
- cd "$_builddir"
+build() {
+ cd "$builddir"
ac_cv_sys_largefile_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-sqlite \
- --enable-largefile \
- || return 1
- make || return 1
+ --enable-largefile
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="646b5f98ce89ac60cdb060fcd398247c libsndfile-1.0.28.tar.gz
-cdd75dee754a3f97a2b9852193858e8b CVE-2017-8361_CVE-2017-8363_CVE-2017-8365.patch
-883e150165932d7dc89aee64795a5e5e CVE-2017-8362.patch
-bcee757ad4ec56f92c0c2ad5c9c9bf96 CVE-2017-12562.patch"
-sha256sums="1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9 libsndfile-1.0.28.tar.gz
-c2d2665744b32facab093540bd0b0c28e72496dd03f8fd51e0aef42fb76d9631 CVE-2017-8361_CVE-2017-8363_CVE-2017-8365.patch
-3dc977a26f36a779874bda304685a221a9da08d3e6b8d239f19785a31e18dbf7 CVE-2017-8362.patch
-5e13e843a247c5cc3e33e926183281003512bd34dbb32acab6c9360e06e6e3c9 CVE-2017-12562.patch"
sha512sums="890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f libsndfile-1.0.28.tar.gz
f98c40696fca3e7bca867df993de55bb4145c23428e65d1a669182eb2293046478ac727ae7f94bb77123ef0355c3c53be4f9d6a432665c90c74687d8d3afd9e3 CVE-2017-8361_CVE-2017-8363_CVE-2017-8365.patch
dfd4b5f1c7471fc416eed5c6040580a020543f145de9103751adaad6ce1c5c6a22abc1cf0ffd381aed3072644cd5ee03ba3598265aa7d202d63167da251cb595 CVE-2017-8362.patch