# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=general-preprocessor pkgver=1.1 pkgrel=1 pkgdesc="Bash based preprocessor for anything" url="https://github.com/maandree/gpp" arch=(any) license=(GPL3) depends=(python bash) makedepends=(make coreutils python texinfo gzip) install=general-preprocessor.install source=("${url}/archive/${pkgver}.tar.gz") sha256sums=(a9d8a140759b6b5bec779165aada466eedc2fb067f5f469f05c69cd059a6c50b) _prefix=/usr _command=gpp ## change this if you have a package conflicting package build() { cd "${srcdir}/gpp-${pkgver}" make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" } package() { cd "${srcdir}/gpp-${pkgver}" make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" install _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}" ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" }