aboutsummaryrefslogtreecommitdiffstats
path: root/main/libatomic_ops/APKBUILD
blob: 34c02750b7f037dccd6ac94f0e0687cb7573db77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer:
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>

pkgname=libatomic_ops
pkgver=7.4.2
pkgrel=0
pkgdesc='Provides semi-portable access to hardware provided atomic memory operations'
arch=all
url='https://github.com/ivmai/libatomic_ops'
license=GPL2
makedepends='automake libtool autoconf'
subpackages="$pkgname-dev $pkgname-doc"
source="$url/archive/$pkgname-${pkgver//./_}.tar.gz"

prepare() {
  cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_}
  ./autogen.sh || return 1
}

build() {
  cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_}
  ./configure --prefix=/usr --disable-static || return 1
  make || return 1
}

package() {
  cd "$srcdir"/$pkgname-$pkgname-${pkgver//./_}
  make DESTDIR="$pkgdir" install || return 1
  install -Dm644 doc/LICENSING.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  find "$pkgdir" -name \*.la -delete
}

md5sums="9c7f41e98cbf4b9dfa54392bc5d9ed65  libatomic_ops-7_4_2.tar.gz"
sha256sums="2616be0a2f70f7e3eb12f131a36e32723ed5a1928f17b886c3e7c62f7ed14339  libatomic_ops-7_4_2.tar.gz"
sha512sums="3d06d5de930a369dd2af4413d8f573993eb927b45941ae8eba14ada91abd34a6baf31e1030d1ef6aa02bd6a2d8d59f9f306dd8dda6a68cf552a2745041111b2e  libatomic_ops-7_4_2.tar.gz"