diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-08 14:45:49 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-08 14:45:56 +0000 |
commit | 25939319f66183bf11f5215664faab51625eef9b (patch) | |
tree | dcc2be766a16c2f26eebdcf5681c81506f781c38 /testing/py-stencil/APKBUILD | |
parent | ac1bc51862f6c0ce3ce4a1f3863d7b0cf63fcafe (diff) | |
download | aports-25939319f66183bf11f5215664faab51625eef9b.tar.bz2 aports-25939319f66183bf11f5215664faab51625eef9b.tar.xz |
testing/py-stencil: modernize APKBUILD
Diffstat (limited to 'testing/py-stencil/APKBUILD')
-rw-r--r-- | testing/py-stencil/APKBUILD | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/testing/py-stencil/APKBUILD b/testing/py-stencil/APKBUILD index ce90e56beb..1f03fc6d18 100644 --- a/testing/py-stencil/APKBUILD +++ b/testing/py-stencil/APKBUILD @@ -3,39 +3,25 @@ pkgname=py-stencil _pkgname=Stencil pkgver=0.2.1 -pkgrel=0 +pkgrel=1 pkgdesc="A Python module to creates files and directories from templates" url="https://github.com/trilan/stencil" arch="noarch" license="BSD" depends="python2" -depends_dev="" makedepends="python2-dev py-setuptools" -install="" -subpackages="" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="a4146fde69df3ee95b4d9c7a596f3fd3 Stencil-0.2.1.tar.gz" -sha256sums="c68196d1f0b27a2981d98c61d28de5777c766f10356207dd8f068e2469c2c2ac Stencil-0.2.1.tar.gz" sha512sums="18d42d8b30141a55074ea8c6dcd0d07bcdd65f3effe7eef2fa525b6580e3cef30a28ee22a61c94432316a898ed2fe6408c12279be9e8c82108ea220bf79b549c Stencil-0.2.1.tar.gz" |