gperf: cleanup

* Set spdx license
* Remove install script in favor of hooks
* Build for cygwin (just to be safe)
This commit is contained in:
Christoph Reiter
2022-01-16 13:45:28 +01:00
parent a90cda8ccf
commit aa05c1b30f
2 changed files with 4 additions and 19 deletions

View File

@@ -2,15 +2,14 @@
pkgname=gperf
pkgver=3.1
pkgrel=2
pkgrel=3
pkgdesc="Perfect hash function generator"
arch=('x86_64' 'i686')
url="https://www.gnu.org/software/gperf/"
license=('GPL3')
license=('spdx:GPL-3.0-or-later')
groups=('base-devel')
depends=('gcc-libs' 'info')
makedepends=('gcc' 'texinfo' 'autotools')
install=gperf.install
source=("https://ftp.gnu.org/pub/gnu/gperf/${pkgname}-${pkgver}.tar.gz"{,.sig})
sha256sums=('588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2'
'SKIP')
@@ -24,6 +23,8 @@ prepare() {
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
CHOST="${CHOST/-msys/-cygwin}" \
./configure \
--build=${CHOST} \
--prefix=/usr \

View File

@@ -1,16 +0,0 @@
infodir=usr/share/info
file=gperf.info.gz
post_install() {
[ -x usr/bin/install-info ] || return 0
install-info $infodir/$file $infodir/dir 2> /dev/null
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
}