blob: 4b7d290197fbbc1941d6d2130bf7b078cd764668 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
pkgname=general-preprocessor
pkgver=1.5
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=(884cdebf9f1c841a57bf9ff59342d8a7dbce95f901eef435bd9b471bce176bc1)
_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}" PY=python3
}
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"
}
|