summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2016-09-03 20:26:35 -0700
committerKyle Manna2016-09-03 20:32:44 -0700
commit307a9f853ae14ce9d06f02602908b6fbbd0e66af (patch)
tree71b342de687bb44d378d6bd42047bb9c5ef7b39c
parent6abdf719fd82ec961955eb91ed92f6eb84934dcf (diff)
downloadaur-307a9f853ae14ce9d06f02602908b6fbbd0e66af.tar.gz
pkgrel: Begin python2-intelhex split + merge
* Create a split package to consolidate two AUR pkgs in to one. * Need Arch linux merge request to be submitted
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD35
2 files changed, 19 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b500a00b271..ed1ee5f364e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Wed Apr 27 14:44:55 UTC 2016
+# Sun Sep 4 03:32:35 UTC 2016
pkgbase = python-intelhex
pkgdesc = Python IntelHex library
pkgver = 2.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/bialix/intelhex
arch = any
license = BSD
- depends = python
- depends = python-setuptools
source = https://github.com/bialix/intelhex/archive/2.1.tar.gz
sha512sums = af5ee3cb7424d15cf259861dcedf6ca68ecfae0819cb9f5c3437a1c8ff8c2f03486dd9f12b93564a5e2f4b7bab4c055a44c6dbe2a86007165412336bd2a4554f
pkgname = python-intelhex
+ depends = python
+ depends = python-setuptools
diff --git a/PKGBUILD b/PKGBUILD
index 14e7cb02eda..44c73564b4b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,31 @@
# Maintainer: Kyle Manna <kyle[at]kylemanna[d0t]com>
-pkgname=python-intelhex
-_pkgname=${pkgname/python-/}
+__pkgname='intelhex'
+#pkgname=('python-intelhex' 'python2-intelhex')
+pkgname=('python-intelhex')
pkgver=2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Python IntelHex library"
url="https://github.com/bialix/intelhex"
-depends=('python' 'python-setuptools')
optdepends=()
license=('BSD')
arch=('any')
-source=("https://github.com/bialix/${_pkgname}/archive/${pkgver}.tar.gz")
+source=("https://github.com/bialix/${__pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('af5ee3cb7424d15cf259861dcedf6ca68ecfae0819cb9f5c3437a1c8ff8c2f03486dd9f12b93564a5e2f4b7bab4c055a44c6dbe2a86007165412336bd2a4554f')
-build() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py build
+package_python-intelhex() {
+ depends=('python' 'python-setuptools')
+ cd "$srcdir/$__pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ rm -rf ${pkgdir}/usr/lib/python*/site-packages/tests/
}
-package() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
+package_python2-intelhex() {
+ depends=('python2' 'python2-setuptools')
+ cd "$srcdir/$__pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1
rm -rf ${pkgdir}/usr/lib/python*/site-packages/tests/
- # Only install command line tools with python2-intelhex version
+ # Only install command line tools with python-intelhex version
rm -rf ${pkgdir}/usr/bin
}
-#package_python2-intelhex() {
-# cd "$srcdir/$_pkgname-$pkgver"
-# python setup.py install --root="$pkgdir" --optimize=1
-# rm -rf ${pkgdir}/usr/lib/python*/site-packages/tests/
-#
-# # Only install command line tools with python3 version
-# rm -rf ${pkgdir}/usr/bin
-#}