diff options
author | yochananmarqos | 2020-01-17 09:54:16 -0700 |
---|---|---|
committer | yochananmarqos | 2020-01-17 09:54:16 -0700 |
commit | 015476bbb979d90ed76cc3002604263a181e1320 (patch) | |
tree | db4e443be1ee2e30cbd863319c937af5ab5233b3 | |
parent | 9d0455c847a631eae389c21d69f2dab154f0e5bd (diff) | |
download | aur-015476bbb979d90ed76cc3002604263a181e1320.tar.gz |
move python-wxpython to optdepends, fix desktop icon location
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rwxr-xr-x | PyShortcut.desktop | 8 |
3 files changed, 20 insertions, 17 deletions
@@ -1,17 +1,17 @@ pkgbase = python-pyshortcuts pkgdesc = Create desktop shortcuts to python scripts pkgver = 1.7 - pkgrel = 1 + pkgrel = 2 url = https://github.com/newville/pyshortcuts arch = any license = MIT makedepends = python-setuptools depends = python-six - depends = python-wxpython - source = python-pyshortcuts-1.7.tar.gz::https://github.com/newville/pyshortcuts/archive/1.7.tar.gz + optdepends = python-wxpython: for GUI + source = https://files.pythonhosted.org/packages/source/p/pyshortcuts/pyshortcuts-1.7.tar.gz source = PyShortcut.desktop - sha256sums = 1bcba867cfef137ca6fbb188aeb4d30ec4747ed1f6278acca1a757e37c3c671f - sha256sums = 8087c2ec7b71de9f0a9e7ef963a6f67d83e33271ef0071b1018ee475998380a5 + sha256sums = 24c179b76987863000ed29ba7114ead0febebe9caead2db4a0be33fd61ffa557 + sha256sums = 82fa76300174a1cdaaeea9181c0292bd80cd77bc7fc896091a8110c6d294779f pkgname = python-pyshortcuts @@ -1,17 +1,19 @@ # Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com> pkgname=python-pyshortcuts +_name=pyshortcuts pkgver=1.7 -pkgrel=1 +pkgrel=2 pkgdesc="Create desktop shortcuts to python scripts" arch=('any') url="https://github.com/newville/pyshortcuts" license=('MIT') -depends=('python-six' 'python-wxpython') +depends=('python-six') makedepends=('python-setuptools') -source=("$pkgname-$pkgver.tar.gz::https://github.com/newville/pyshortcuts/archive/$pkgver.tar.gz" - 'PyShortcut.desktop') -sha256sums=('1bcba867cfef137ca6fbb188aeb4d30ec4747ed1f6278acca1a757e37c3c671f' - '8087c2ec7b71de9f0a9e7ef963a6f67d83e33271ef0071b1018ee475998380a5') +optdepends=('python-wxpython: for GUI') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz" + "PyShortcut.desktop") +sha256sums=('24c179b76987863000ed29ba7114ead0febebe9caead2db4a0be33fd61ffa557' + '82fa76300174a1cdaaeea9181c0292bd80cd77bc7fc896091a8110c6d294779f') build() { cd "pyshortcuts-$pkgver" @@ -21,6 +23,7 @@ build() { package() { cd "pyshortcuts-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm644 "$srcdir/PyShortcut.desktop" "$pkgdir/usr/share/applications/PyShortcut.desktop" + + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 "$srcdir/PyShortcut.desktop" -t "$pkgdir/usr/share/applications" } diff --git a/PyShortcut.desktop b/PyShortcut.desktop index 22fd657832eb..c2c4db3cfa67 100755 --- a/PyShortcut.desktop +++ b/PyShortcut.desktop @@ -1,7 +1,7 @@ [Desktop Entry] -Name=PyShortcut +Name=PyShortcuts Creator Type=Application -Comment=PyShortcut +Comment=PyShortcuts Creator Terminal=false -Icon=/usr/lib/python3.7/site-packages/pyshortcuts/icons/py.ico -Exec=/usr/sbin/python /usr/bin/pyshortcut --wxgui +Icon=/usr/lib/python3.8/site-packages/pyshortcuts/icons/py.ico +Exec=pyshortcut --wxgui |