diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-08-03 19:00:03 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-08-22 23:50:34 +0200 |
commit | d612033eb84c26af375a97c5a7a95e6a4b4e8921 (patch) | |
tree | 61ce5ab644998b9424e6df9cbe2cd95fe92c464f | |
parent | 5b82e70896d36bd90705926e0a0d1a8c18ee3422 (diff) | |
download | aports-d612033eb84c26af375a97c5a7a95e6a4b4e8921.tar.bz2 aports-d612033eb84c26af375a97c5a7a95e6a4b4e8921.tar.xz |
main/libatomic_ops: upgrade to 7.4.6
* Modernize abuild
* Enable shared library
* Use source tarball
-rw-r--r-- | main/libatomic_ops/APKBUILD | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/main/libatomic_ops/APKBUILD b/main/libatomic_ops/APKBUILD index 38fe46e8d0..a9f3c42a66 100644 --- a/main/libatomic_ops/APKBUILD +++ b/main/libatomic_ops/APKBUILD @@ -1,34 +1,40 @@ # Maintainer: # Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> - pkgname=libatomic_ops -pkgver=7.4.2 +pkgver=7.4.6 pkgrel=0 -pkgdesc='Provides semi-portable access to hardware provided atomic memory operations' -arch=all -url='https://github.com/ivmai/libatomic_ops' -license=GPL2 -makedepends='automake libtool autoconf' +pkgdesc="Provides semi-portable access to hardware provided atomic memory operations" +arch="all" +url="https://github.com/ivmai/libatomic_ops" +license="GPL2" +makedepends="" subpackages="$pkgname-dev $pkgname-doc" -source="$url/archive/$pkgname-${pkgver//./_}.tar.gz" +source="$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/"$pkgname-$pkgver -prepare() { - cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} - ./autogen.sh || return 1 +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-shared \ + --disable-static + make } -build() { - cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} - ./configure --prefix=/usr --disable-static || return 1 - make || return 1 +check() { + cd "$builddir" + make check } package() { - cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} - make DESTDIR="$pkgdir" install || return 1 - install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd "$builddir" + make DESTDIR="$pkgdir" install + install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } -md5sums="9c7f41e98cbf4b9dfa54392bc5d9ed65 libatomic_ops-7_4_2.tar.gz" -sha256sums="2616be0a2f70f7e3eb12f131a36e32723ed5a1928f17b886c3e7c62f7ed14339 libatomic_ops-7_4_2.tar.gz" -sha512sums="3d06d5de930a369dd2af4413d8f573993eb927b45941ae8eba14ada91abd34a6baf31e1030d1ef6aa02bd6a2d8d59f9f306dd8dda6a68cf552a2745041111b2e libatomic_ops-7_4_2.tar.gz" +sha512sums="29c6f937aa5d21343741aa0661aaf33ec9196b7784b7165d40dd87ce7bf8a7691f5ba94040663f078465ded1935ca01bb829a4b56b190f9db63cc141515d9819 libatomic_ops-7.4.6.tar.gz" |