diff options
author | Kr1ss | 2019-11-08 00:31:16 +0100 |
---|---|---|
committer | Kr1ss | 2019-11-08 00:31:16 +0100 |
commit | 2b3b80b2e00b8de078b96890caa7670046b4c999 (patch) | |
tree | 29b088c1c2cf4ff84d8ea1821da2838f48092c32 | |
parent | 0119d78aa34defa26e7baf58a8d451fd755625b8 (diff) | |
download | aur-2b3b80b2e00b8de078b96890caa7670046b4c999.tar.gz |
implement dynamic python version
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = dupliseek-git pkgdesc = Duplicate image finder written in Python/Qt5 - pkgver = 0.0.2alpha.r56.eee4fd7 - pkgrel = 3 + pkgver = 0.0.2alpha.r57.3bac8b6 + pkgrel = 1 url = https://gitlab.com/dupliseek-group/dupliseek arch = x86_64 license = MIT @@ -3,8 +3,8 @@ pkgname=dupliseek-git pkgver() { git -C "${pkgname%-git}" describe | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'; } -pkgver=0.0.2alpha.r56.eee4fd7 -pkgrel=3 +pkgver=0.0.2alpha.r57.3bac8b6 +pkgrel=1 pkgdesc='Duplicate image finder written in Python/Qt5' arch=('x86_64') @@ -45,8 +45,10 @@ package() { install -Dm644 README.md -t"$pkgdir/usr/share/doc/${pkgname%-git}/" install -Dm644 LICENSE -t"$pkgdir/usr/share/licenses/${pkgname%-git}/" install -dm755 "$pkgdir/usr/bin" - ln -sf "/usr/lib/python3.7/site-packages/DupliSeek/main.py" "$pkgdir/usr/bin/${pkgname%-git}" - chmod 755 "$pkgdir/usr/lib/python3.7/site-packages/DupliSeek/main.py" + _py3ver=$(python --version | sed 's/Python \(3\.[0-9]\+\).*/\1/') + ln -sf "/usr/lib/python$_py3ver/site-packages/DupliSeek/main.py" "$pkgdir/usr/bin/${pkgname%-git}" + chmod 755 "$pkgdir/usr/lib/python$_py3ver/site-packages/DupliSeek/main.py" } + # vim: ts=2 sw=2 et ft=PKGBUILD: |