[arch-commits] Commit in python-filebytes/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Jun 30 18:23:23 UTC 2018
Date: Saturday, June 30, 2018 @ 18:23:23
Author: foutrelis
Revision: 348978
archrelease: copy trunk to community-staging-any
Added:
python-filebytes/repos/community-staging-any/
python-filebytes/repos/community-staging-any/PKGBUILD
(from rev 348977, python-filebytes/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-filebytes/repos/community-staging-any/PKGBUILD (from rev 348977, python-filebytes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:23:23 UTC (rev 348978)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-filebytes
+pkgname=('python-filebytes' 'python2-filebytes')
+_pyname=${pkgbase/python-/}
+pkgver=0.9.15
+pkgrel=2
+pkgdesc='Library to read and edit executable binary files'
+url='https://github.com/sashs/filebytes'
+arch=('any')
+license=('GPL2')
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/sashs/filebytes/archive/v${pkgver}.tar.gz)
+sha512sums=('a5d9d8d85ab139491cc4f43c32aa72f985fecf106fe34ec531885fd930d91a0490eedc765fc0d06da1695ff32b0aec0adde8b97b95e7d3d3251496e49624a485')
+
+prepare() {
+ cp -ra ${_pyname}-${pkgver}{,-py2}
+ sed -r 's|env python$|env python2|' -i ${_pyname}-${pkgver}-py2/samples/*
+}
+
+build() {
+ (cd ${_pyname}-${pkgver}
+ python setup.py build
+ )
+ (cd ${_pyname}-${pkgver}-py2
+ python2 setup.py build
+ )
+}
+
+package_python-filebytes() {
+ depends=('python')
+ cd ${_pyname}-${pkgver}
+ python setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+package_python2-filebytes() {
+ depends=('python2')
+ cd ${_pyname}-${pkgver}-py2
+ python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list