[arch-commits] Commit in python-filebytes/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Feb 21 19:34:27 UTC 2018


    Date: Wednesday, February 21, 2018 @ 19:34:26
  Author: anthraxx
Revision: 296721

upgpkg: python-filebytes 0.9.14-1

Modified:
  python-filebytes/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-21 19:20:28 UTC (rev 296720)
+++ PKGBUILD	2018-02-21 19:34:26 UTC (rev 296721)
@@ -3,15 +3,16 @@
 pkgbase=python-filebytes
 pkgname=('python-filebytes' 'python2-filebytes')
 _pyname=${pkgbase/python-/}
-pkgver=0.9.13
+pkgver=0.9.14
 pkgrel=1
 pkgdesc='Library to read and edit executable binary files'
 url='https://github.com/sashs/filebytes'
 arch=('any')
 license=('GPL2')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
 source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/sashs/filebytes/archive/v${pkgver}.tar.gz)
-sha512sums=('e6c8fe3647fc7a600ffc26883bc90724b5cfe18c8c5603d7a184e73e5fee3ae27ab01e793ef1ddbd8a69fe294bbc33cb5b3314d815d8f498f57876f83566de16')
+sha512sums=('3867e7da75ccf4c01df4a7af6f05bd39c46da165c6680c501345e1d637b462d9b9014e3b750e56332e54614f257c819c6f1147f4630419d6b1ac9fa2606e73d3')
 
 prepare() {
   cp -ra ${_pyname}-${pkgver}{,-py2}
@@ -18,10 +19,19 @@
   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
+  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"
 }
@@ -29,7 +39,7 @@
 package_python2-filebytes() {
   depends=('python2')
   cd ${_pyname}-${pkgver}-py2
-  python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+  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"
 }



More information about the arch-commits mailing list