Commit 3aacf730 authored by Jeff Huang's avatar Jeff Huang 🤔
Browse files

[skip-ci] rhash: update to 1.3.8

parent f115c0bc
Pipeline #4076 skipped
# Arch Contributor: https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/rhash
# Contributions from Arch:
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: 謝致邦 <Yeking@Red54.com>
# Contributor: cantabile <cantabile dot desu at gmail dot com>
# Contributor: reMiND <detanator@gmail.com>
pkgname=rhash
pkgver=1.3.5
pkgver=1.3.8
pkgrel=1
pkgdesc='Utility for verifying hash sums of files'
url='http://rhash.anz.ru/?l=en'
url='https://github.com/rhash/RHash'
license=('custom' 'MIT')
arch=('x86_64')
depends=('glibc')
backup=('etc/rhashrc')
source=("https://github.com/rhash/RHash/archive/v$pkgver.tar.gz")
sha256sums=('98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e')
source=(https://github.com/rhash/RHash/archive/v$pkgver.tar.gz
https://github.com/rhash/RHash/releases/download/v$pkgver/v$pkgver.tar.gz.asc)
sha256sums=('be536a56acfefc87dbc8b1db30fc639020e41edf05518185ea98630e3df7c04c'
'SKIP')
validpgpkeys=('2875F6B1C2D27A4F0C8AF60B2A714497E37363AE')
prepare() {
cd RHash-$pkgver
./configure --prefix=/usr --sysconfdir=/etc --extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS"
}
build() {
cd RHash-$pkgver
make ADDCFLAGS="$CFLAGS" ADDLDFLAGS="$LDFLAGS" build-shared
make -C librhash
make
}
check() {
cd RHash-$pkgver
make test-shared
make test test-lib
}
package() {
cd RHash-$pkgver
# program
make PREFIX=/usr DESTDIR="$pkgdir" install-shared
make DESTDIR="$pkgdir" install
# library
make -C librhash PREFIX=/usr DESTDIR="$pkgdir" install-headers install-lib-shared install-lib-static
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment