aboutsummaryrefslogtreecommitdiffstats
path: root/main/libatomic_ops
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-01-17 09:18:18 +0100
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-01-18 18:25:00 +0100
commita4e7c880b687bdef9754411da80186576776ab14 (patch)
tree75236dec29c583d0cfc858f9aaca22db176b6f6d /main/libatomic_ops
parent129913715aa9ecabb8742a84224def4493b69c01 (diff)
downloadaports-a4e7c880b687bdef9754411da80186576776ab14.tar.bz2
aports-a4e7c880b687bdef9754411da80186576776ab14.tar.xz
main/libatomic_ops: new aport
A new dependency of gc 7.4.0.
Diffstat (limited to 'main/libatomic_ops')
-rw-r--r--main/libatomic_ops/APKBUILD34
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"