summaryrefslogtreecommitdiff
path: root/user/libatomic_ops
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 05:05:54 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-08 05:05:54 -0500
commit34a6ef047ac7d2efb50f99fd46065519f647464a (patch)
tree75d364fda9c4ecbc4eb9c2fe47d6b499b0de7f5b /user/libatomic_ops
parent71dc5cc648b539241063ee2b6f79ca74849fa528 (diff)
downloadpackages-34a6ef047ac7d2efb50f99fd46065519f647464a.tar.gz
packages-34a6ef047ac7d2efb50f99fd46065519f647464a.tar.bz2
packages-34a6ef047ac7d2efb50f99fd46065519f647464a.tar.xz
packages-34a6ef047ac7d2efb50f99fd46065519f647464a.zip
user/libatomic_ops: pull in, bump, take, fix
Diffstat (limited to 'user/libatomic_ops')
-rw-r--r--user/libatomic_ops/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/libatomic_ops/APKBUILD b/user/libatomic_ops/APKBUILD
new file mode 100644
index 000000000..eb8d23914
--- /dev/null
+++ b/user/libatomic_ops/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libatomic_ops
+pkgver=7.6.4
+pkgrel=0
+pkgdesc="Provides semi-portable access to hardware provided atomic memory operations"
+arch="all"
+url="https://github.com/ivmai/libatomic_ops"
+license="GPL-2.0-only"
+makedepends=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
+
+case "$CARCH" in
+s390x) options="!check" ;; # FIXME
+esac
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-shared \
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+sha512sums="2e6ef0bfd4b77e9260383feb2865c96388fb1ebed9d37605eeb83ac87e3b6a565495d588808129ac7b3ee5f6a58a37440da7784b680cc6590842b09c2625983b libatomic_ops-7.6.4.tar.gz"