29 lines
711 B
Plaintext
29 lines
711 B
Plaintext
# Description: Great utility for computing hash sums
|
|
# URL: https://github.com/rhash/RHash
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=rhash
|
|
version=1.4.4
|
|
release=1
|
|
source=(https://github.com/rhash/RHash/archive/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd RHash-$version
|
|
|
|
sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-lib-{static,shared} \
|
|
--extra-cflags="$CFLAGS" \
|
|
--extra-ldflags="$LDFLAGS"
|
|
|
|
make
|
|
make test test-lib
|
|
|
|
make DESTDIR=$PKG install
|
|
make -C librhash DESTDIR=$PKG install-lib-headers install-so-link
|
|
install -Dm0644 -o root -g root dist/librhash.pc \
|
|
$PKG/usr/lib/pkgconfig/librhash.pc
|
|
}
|