aboutsummaryrefslogtreecommitdiffstats
path: root/main/libatomic_ops
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-15 08:44:28 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-17 10:18:46 +0000
commit1ad5b564ce566993a5d1af04d0f3e768e95458bc (patch)
treeac564d588fe7c84786ee76c9a88a5d92841901c3 /main/libatomic_ops
parenta336370de87a91b55111bd37b74a8b4f51dcf30a (diff)
downloadaports-1ad5b564ce566993a5d1af04d0f3e768e95458bc.tar.bz2
aports-1ad5b564ce566993a5d1af04d0f3e768e95458bc.tar.xz
main/libatomic_ops: provide static library
closes #10580
Diffstat (limited to 'main/libatomic_ops')
-rw-r--r--main/libatomic_ops/APKBUILD17
1 files changed, 11 insertions, 6 deletions
diff --git a/main/libatomic_ops/APKBUILD b/main/libatomic_ops/APKBUILD
index e13e49638d..50757676a8 100644
--- a/main/libatomic_ops/APKBUILD
+++ b/main/libatomic_ops/APKBUILD
@@ -2,15 +2,13 @@
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=libatomic_ops
pkgver=7.6.10
-pkgrel=0
+pkgrel=1
pkgdesc="Semi-portable access to hardware provided atomic memory operations"
arch="all"
url="https://github.com/ivmai/libatomic_ops"
license="GPL-2.0-or-later MIT"
-makedepends=""
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://github.com/ivmai/libatomic_ops/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir/"$pkgname-$pkgver
case "$CARCH" in
s390x) options="!check" ;; # FIXME
@@ -25,8 +23,7 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --enable-shared \
- --disable-static
+ --enable-shared
make
}
@@ -40,4 +37,12 @@ package() {
make DESTDIR="$pkgdir" install
}
+static() {
+ depends=""
+ pkgdesc="$pkgdesc (static library)"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
+}
+
sha512sums="4661445503ef4303e873559af319ad799a7eddad3df45ad602cf338c594a642ad4333a36fa91722f0d8c48acd38bbf45c60a468c7375d14824520a83c1109ec9 libatomic_ops-7.6.10.tar.gz"