summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2020-09-25 15:37:31 +0200
committerDennis Fink2020-09-25 15:37:31 +0200
commit89f3121ed601f95f5e32952ff6ade90d565f193f (patch)
tree68f2fa1abe988f589f1e422bf103396f0bf570bd
parent042b00fd50e09c2610e2c1e906769ccdd45d5b9c (diff)
downloadpatternutils-89f3121ed601f95f5e32952ff6ade90d565f193f.tar.gz
patternutils-89f3121ed601f95f5e32952ff6ade90d565f193f.zip
Do not fix dependencies in PKGBUILD and put the hash in a variable
-rw-r--r--PKGBUILD/PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD/PKGBUILD b/PKGBUILD/PKGBUILD
index 4e011f3..581b9dc 100644
--- a/PKGBUILD/PKGBUILD
+++ b/PKGBUILD/PKGBUILD
@@ -2,6 +2,7 @@
pkgname=patternutils
pkgver=0.0.7
+_pkghash=63e2ad2d4211
pkgrel=1
pkgdesc="Combine regular expressions with template engines in a powerful matter."
arch=('any')
@@ -11,12 +12,16 @@ depends=('python' 'python-click' 'python-jinja' 'python-pygments')
source=('patternutils-0.0.7.zip::https://projects.metalgamer.eu/patternutils/archive/63e2ad2d42116041db43b33f5ad0aafe84ec38ad.zip?subrepos=false')
sha512sums=('efbae7ecd8eb17564db574fa4a8bc573ce0203fb7b6130ad118d695f3ba4cd4b1f66c2fd469a8c3003e7538467ee4d54a7b30d02dd3f28afe12b4c012e52a9bc')
+prepare() {
+ sed -i 's/==/>=/g' "$srcdir/$pkgname-$_pkghash/setup.py"
+}
+
build() {
- cd "$srcdir/$pkgname-63e2ad2d4211"
+ cd "$srcdir/$pkgname-$_pkghash"
python setup.py build
}
package() {
- cd "$srcdir/$pkgname-63e2ad2d4211"
+ cd "$srcdir/$pkgname-$_pkghash"
python setup.py install --root="$pkgdir" --optimize=1
}