new blfs: dev-libs/libatomic_ops-7.8.4
This commit is contained in:
31
dev-libs/libatomic_ops-7.8.4.PKGBUILD
Normal file
31
dev-libs/libatomic_ops-7.8.4.PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
||||
pkgname=libatomic_ops
|
||||
pkgver=7.8.4
|
||||
pkgdesc='Provides semi-portable access to hardware provided atomic memory operations'
|
||||
arch=(x86_64)
|
||||
url='https://github.com/ivmai/libatomic_ops'
|
||||
depends=(glibc)
|
||||
license=(GPL2 MIT)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/bdwgc/libatomic_ops/releases/download/v${pkgver}/${sources[0]}")
|
||||
sha512sums=("5f77a520cecc31fe9baf4d3a61beac79dba317e7b149464a945db3389c4a94b45fdb52f105d838409b1cbd64b5c3ae0e29acf81df5606a6f49ee8a366673091a")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --disable-static --enable-shared
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
mv -vf "${pkgdir}"/usr/share/doc/{${pkgname},${pkgname}-${pkgver}}
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user