summaryrefslogblamecommitdiff
path: root/user/libatomic_ops/APKBUILD
blob: f12a1f61a1a16779e8837026724777f6246744bd (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                   
             




                                                                                     
          








                                                                












                                         



                  



                                                                                      
                                                                                                                                                                          
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libatomic_ops
pkgver=7.6.12
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"
depends=""
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() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-shared \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="bbf98a38a80c8fe6b7eab773967edc55b8d48be32b36ed827fb835ee3dcd96d5ec1dc97149714e015e93a0a5b9fc03595797663fdb5a0f673869ea8bfe640df5  libatomic_ops-7.6.12.tar.gz"