diff options
Diffstat (limited to 'gpp')
-rw-r--r-- | gpp/PKGBUILD | 27 | ||||
-rw-r--r-- | gpp/general-preprocessor.install | 20 |
2 files changed, 10 insertions, 37 deletions
diff --git a/gpp/PKGBUILD b/gpp/PKGBUILD index 3c40e76..0edb13b 100644 --- a/gpp/PKGBUILD +++ b/gpp/PKGBUILD @@ -1,31 +1,24 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=general-preprocessor -pkgver=1.6 +pkgver=2.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 auto-auto-complete) -install=general-preprocessor.install -source=("${url}/archive/${pkgver}.tar.gz") -sha256sums=(46aa12e2ac51f235c801d0751686e6699efd51fa063078b8e13a0d63cf277dde) +license=('custom:ISC') +depends=() +optdepends=('bash: default shell') +source=("gpp-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=(ef305acf927ba6a37aa7e250b3a3d4f1fd4e0513a98acd6d2bdcdc15e4930faf) -_prefix=/usr -_command=gpp ## change this if you have a package conflicting package - -build() { +build () { cd "${srcdir}/gpp-${pkgver}" - make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" PY=python3 + make PREFIX="/usr" DESTDIR="${pkgdir}" } -package() { +package () { cd "${srcdir}/gpp-${pkgver}" - make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" PY=python3 install - _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}" - ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" + make PREFIX="/usr" DESTDIR="${pkgdir}" install } - diff --git a/gpp/general-preprocessor.install b/gpp/general-preprocessor.install deleted file mode 100644 index 3f68be9..0000000 --- a/gpp/general-preprocessor.install +++ /dev/null @@ -1,20 +0,0 @@ -_file="general-preprocessor" - -infodir="usr/share/info" -file="${_file}.info" - - -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 -} - |