62 lines
1.7 KiB
Bash
62 lines
1.7 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=rhash
|
|
pkgver=1.4.3
|
|
pkgrel=01
|
|
pkgdesc='Utility for verifying hash sums of files'
|
|
url='https://github.com/rhash/RHash'
|
|
arch=('x86_64')
|
|
depends=('glibc')
|
|
backup=('etc/rhashrc')
|
|
source=(rhash-$pkgver.tar.gz::https://github.com/rhash/RHash/archive/v$pkgver.tar.gz
|
|
rhash-$pkgver.tar.gz.asc::https://github.com/rhash/RHash/releases/download/v$pkgver/v$pkgver.tar.gz.asc)
|
|
|
|
prepare() {
|
|
cd RHash-$pkgver
|
|
./configure --prefix=/usr --sysconfdir=/etc --extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS"
|
|
}
|
|
|
|
build() {
|
|
cd RHash-$pkgver
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd RHash-$pkgver
|
|
make test test-lib
|
|
}
|
|
|
|
package() {
|
|
cd RHash-$pkgver
|
|
|
|
# program
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# library, since the makefiles are still broken
|
|
make -C librhash DESTDIR="$pkgdir" install-lib-headers install-lib-shared install-so-link
|
|
|
|
# license
|
|
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/rhash/LICENSE
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('BSD')
|
|
|
|
# https://sourceforge.net/p/rhash/wiki/PublicKey/
|
|
validpgpkeys=('2875F6B1C2D27A4F0C8AF60B2A714497E37363AE')
|
|
|
|
sha256sums=(1e40fa66966306920f043866cbe8612f4b939b033ba5e2708c3f41be257c8a3e # rhash-1.4.3.tar.gz
|
|
b6eae72cfb6d984b165a7e6c527fa92b6b7c93663c6e1c208c73a2d9091c5d90) # rhash-1.4.3.tar.gz.asc
|
|
|
|
sha512sums=('d87ffcde28d8f25cf775c279fed457e52d24523ed9b695629dae694b3c22372247d18f6032f8ce13a0b70fa2953be408982e46659daaa7c4ab227ae89eaed9c7'
|
|
'SKIP')
|
|
|
|
|
|
|