diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/libatomic_ops/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main/libatomic_ops/APKBUILD b/main/libatomic_ops/APKBUILD new file mode 100644 index 0000000000..a871c67bab --- /dev/null +++ b/main/libatomic_ops/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: +# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> + +pkgname=libatomic_ops +pkgver=7.4.0 +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' +source="$url/archive/$pkgname-${pkgver//./_}.tar.gz" + +prepare() { + cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} + ./autogen.sh || return 1 +} + +build() { + cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} + ./configure --prefix=/usr --disable-static || return 1 + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_} + make DESTDIR="$pkgdir" install || return 1 + install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + find "$pkgdir" -name \*.la -delete +} + +md5sums="87900bbf98f2ff7dce062e7b62e9d8ef libatomic_ops-7_4_0.tar.gz" +sha256sums="1d073f490c1769f838312efeb5008c80c1b0936c49a887575bd8b305db270226 libatomic_ops-7_4_0.tar.gz" +sha512sums="cf16abfed9930acde22f220ce34849835473de45f1ac04513d23dc9f28df968fd58092a78aac15087a3d41d3b52bcfa7ce3f7acb57591ccf1b272d54992f904a libatomic_ops-7_4_0.tar.gz" |