db-move: moved gnome-weather from [staging] to [testing] (any)
[arch-packages.git] / libatomic_ops / trunk / PKGBUILD
blobadc46cceee95cdcfd89eb1c9e900ef525514025a
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.8.0
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=('15676e7674e11bda5a7e50a73f4d9e7d60452271b8acf6fd39a71fefdf89fa31')
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 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"