mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-20 23:32:47 +01:00
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Grigory Kirillov <txgk@bk.ru>
|
|
pkgname=bzip3
|
|
pkgver=1.1.3
|
|
pkgrel=0
|
|
pkgdesc="Better and stronger spiritual successor to BZip2"
|
|
url="https://github.com/kspalaiologos/bzip3"
|
|
arch="all"
|
|
license="LGPL-3.0-only"
|
|
# clang provides better performance https://gitlab.alpinelinux.org/alpine/aports/-/issues/13807
|
|
makedepends="clang"
|
|
subpackages="$pkgname-libs $pkgname-static $pkgname-dev"
|
|
source="https://github.com/kspalaiologos/bzip3/releases/download/$pkgver/bzip3-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
CC=clang ./configure \
|
|
--target="$CTARGET" \
|
|
--build="$CBUILD" \
|
|
--host="$CHOST" \
|
|
--prefix=/usr
|
|
make all
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
libs() {
|
|
pkgdesc="$pkgdesc (library)"
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libbzip3.so "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="
|
|
77b95f906a261bcc06b1de3130be13fb4574c272e792197991784b3c32a6ad08849a044fc02f6c8261b7d920a97c847a3701b7dc3b4349fa008178d1f59b4bbd bzip3-1.1.3.tar.gz
|
|
"
|