- remove `--host` and `--target`, because we are not cross-compiling - install doc, info and man files - install license file
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
_realname=gperf
|
|
pkgbase=mingw-w64-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
|
pkgver=3.3
|
|
pkgrel=1
|
|
pkgdesc="Perfect hash function generator (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
url="https://www.gnu.org/software/gperf/"
|
|
license=('spdx:GPL-3.0')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-cc-libs")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools" "${MINGW_PACKAGE_PREFIX}-cc")
|
|
source=("https://ftp.gnu.org/pub/gnu/gperf/${_realname}-${pkgver}.tar.gz"{,.sig})
|
|
sha256sums=('fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8'
|
|
'SKIP')
|
|
validpgpkeys=('E0FFBD975397F77A32AB76ECB6301D9E1BBEAC08') # Bruno Haible (Free Software Development) <bruno@clisp.org>
|
|
|
|
build() {
|
|
mkdir build-${MSYSTEM}
|
|
cd build-${MSYSTEM}
|
|
../${_realname}-${pkgver}/configure \
|
|
--prefix=${MINGW_PREFIX} \
|
|
--docdir=${MINGW_PREFIX}/share/doc/gperf
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd build-${MSYSTEM}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd build-${MSYSTEM}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 "${srcdir}"/${_realname}-${pkgver}/COPYING "${pkgdir}"${MINGW_PREFIX}/share/licenses/gperf/LICENSE
|
|
}
|