core/rhash/PKGBUILD

38 lines
920 B
Bash
Raw Normal View History

2017-04-29 12:30:02 +08:00
# Arch Contributor: https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/rhash
pkgname=rhash
2018-01-19 04:54:25 +08:00
pkgver=1.3.5
2017-04-29 12:30:02 +08:00
pkgrel=1
pkgdesc='Utility for verifying hash sums of files'
url='http://rhash.anz.ru/?l=en'
license=('custom' 'MIT')
arch=('x86_64')
depends=('glibc')
backup=('etc/rhashrc')
2018-01-19 04:54:25 +08:00
source=("https://github.com/rhash/RHash/archive/v$pkgver.tar.gz")
sha256sums=('98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e')
2017-04-29 12:30:02 +08:00
build() {
2018-01-19 04:54:25 +08:00
cd RHash-$pkgver
2017-04-29 12:30:02 +08:00
make ADDCFLAGS="$CFLAGS" ADDLDFLAGS="$LDFLAGS" build-shared
2018-01-19 04:54:25 +08:00
make -C librhash
2017-04-29 12:30:02 +08:00
}
check() {
2018-01-19 04:54:25 +08:00
cd RHash-$pkgver
2017-04-29 12:30:02 +08:00
make test-shared
}
package() {
2018-01-19 04:54:25 +08:00
cd RHash-$pkgver
2017-04-29 12:30:02 +08:00
# program
make PREFIX=/usr DESTDIR="$pkgdir" install-shared
# library
make -C librhash PREFIX=/usr DESTDIR="$pkgdir" install-headers install-lib-shared install-lib-static
# license
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/rhash/LICENSE
}