archrelease: copy trunk to testing-x86_64
[arch-packages.git] / libatomic_ops / trunk / PKGBUILD
blob0e319801a43f97cdd3b3abf9e6d89a9eed1d8536
1 # Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Adam Walters <abwalters@abwalters.us>
4 # Contributor: William Rea <sillywilly@gmail.com>
5 # Contributor: Rémy Oudompheng <remy@archlinux.org>
7 pkgname=libatomic_ops
8 pkgver=7.6.12
9 pkgrel=1
10 pkgdesc='Provides semi-portable access to hardware provided atomic memory operations'
11 arch=(x86_64)
12 url='https://github.com/ivmai/libatomic_ops'
13 depends=(glibc)
14 license=(GPL2 MIT)
15 options=(!docs)
16 source=($url/releases/download/v$pkgver/${pkgname}-${pkgver}.tar.gz)
17 sha256sums=('f0ab566e25fce08b560e1feab6a3db01db4a38e5bc687804334ef3920c549f3e')
19 build() {
20   cd $pkgname-$pkgver
21   ./configure --prefix=/usr --disable-static --enable-shared
22   make
25 check() {
26   cd $pkgname-$pkgver
27   make check
30 package() {
31   cd $pkgname-$pkgver
32   make DESTDIR="$pkgdir" install
33   install -Dm644 doc/LICENSING.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"