summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e92908b38ac158b649eecdaac715447b1fb6a6c (plain)
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
# Maintainer: Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com>

pkgname=python2-pfp
_pkgname=pfp
pkgver=0.2.1
pkgrel=1
pkgdesc='An interpreter for 010 template scripts.'
arch=(any)
url=https://github.com/d0c-s4vage/pfp
license=('MIT')
depends=(python2-py010parser python2-six python2-intervaltree)
makedepends=(python2-setuptools)
source=("https://github.com/d0c-s4vage/${_pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('26773d2baebb155c1e5d85032b76e960')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python2 setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python2 setup.py install --root="${pkgdir}" --optimize=1
  install -d -m 755 "${pkgdir}/usr/share/licenses/${pkgname}"
  install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}