[arch-commits] Commit in python-filebytes/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:05:36 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:05:36
  Author: felixonmars
Revision: 748472

archrelease: copy trunk to community-staging-any

Added:
  python-filebytes/repos/community-staging-any/
  python-filebytes/repos/community-staging-any/PKGBUILD
    (from rev 748471, python-filebytes/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: python-filebytes/repos/community-staging-any/PKGBUILD (from rev 748471, python-filebytes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:05:36 UTC (rev 748472)
@@ -0,0 +1,30 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-filebytes
+_pyname=${pkgname/python-/}
+pkgver=0.10.2
+pkgrel=2
+pkgdesc='Library to read and edit executable binary files'
+url='https://github.com/sashs/filebytes'
+arch=('any')
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=(https://github.com/sashs/filebytes/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('12317d6b5063e710b4410e4dcc61b45c0ac1cbc80655212dacb0929a19e100849df39ba84a05cb96699abe7ec16758e0b9656b3d3ce044f3d122b8636106e564')
+b2sums=('6b7fb865d01cc9ea0f14b32f6e0326da21fa2fa2a36549b99ca88e9bf015162d3b0f82e350be1cca805294fd56ef47e2db4394db5ffb3061773f146eda1ba666')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+package() {
+  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 COPYING -t "${pkgdir}/usr/share/licenses/${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