Commit 1ad5b564 authored by Leo's avatar Leo Committed by Natanael Copa

main/libatomic_ops: provide static library

closes #10580
parent a336370d
......@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment