Martchus
5411a9d1fd
* Use an older glibc so resulting binaries can run on older systems (without having to link statically against glibc) * Call packages static-compat-* to make it clear that these packages are intended for compatibility with older distributions * Add further libraries to get static-compat-qt6-base and some other static-compat-qt6-* packages building
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Contributor: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Lex Black <autumn-wind@web.de>
|
|
# Contributor: Jesin <Jesin00@gmail.com>
|
|
|
|
_pkgname=libb2
|
|
pkgname=static-compat-$_pkgname
|
|
pkgver=0.98.1
|
|
pkgrel=2
|
|
arch=(x86_64)
|
|
pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions'
|
|
url='https://blake2.net/'
|
|
license=(custom:CC0)
|
|
depends=(gcc-libs-static-compat)
|
|
makedepends=(static-compat-configure)
|
|
options=(staticlibs)
|
|
source=("https://github.com/BLAKE2/libb2/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz")
|
|
sha256sums=('53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e')
|
|
|
|
|
|
build() {
|
|
source static-compat-environment
|
|
# libb2's build system discards the $CFLAGS variable.
|
|
# We can get around this by putting those flags in $CC.
|
|
export CC="${CC-cc} $CFLAGS"
|
|
cd "$_pkgname-$pkgver"
|
|
static-compat-configure --disable-shared --enable-static --disable-native --enable-fat
|
|
make
|
|
}
|
|
|
|
check() {
|
|
source static-compat-environment
|
|
export CC="${CC-cc} $CFLAGS"
|
|
cd $_pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
export CC="${CC-cc} $CFLAGS"
|
|
cd $_pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
|
|
}
|