summaryrefslogblamecommitdiff
path: root/user/libatomic_ops/APKBUILD
blob: da5866d7752ee6b462c546b02c63fc5e8b20ce7f (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.14
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="da83886b4d766da64b27672eede40bd5787523a4c308ac7bd3f03ac831ae1a141ba21e5f5ada27bfcf811b9fb04d8a519331ea2573af036f8791958668dad851  libatomic_ops-7.6.14.tar.gz"