diff options
author | Yigit Sever | 2021-09-30 01:22:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-09-30 01:22:24 +0300 |
commit | 41b6068d5edc7c788df2577699a2665acde5f1dd (patch) | |
tree | 1666d0490c437365942b0ca6a9a967b93069428d | |
parent | ab5a1b4615b6a2d13e88528e3205e8c3bb735d52 (diff) | |
download | aur-41b6068d5edc7c788df2577699a2665acde5f1dd.tar.gz |
Add desktop entry
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 3 deletions
@@ -1,11 +1,12 @@ pkgbase = gourmand pkgdesc = A recipe manager for desktop that can import recipes pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/GourmandRecipeManager/gourmand arch = any license = GPL makedepends = python-pip + makedepends = gendesk depends = python-gobject depends = gtk3 depends = python-pyenchant @@ -2,13 +2,13 @@ pkgname='gourmand' pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="A recipe manager for desktop that can import recipes" arch=('any') url="https://github.com/GourmandRecipeManager/gourmand" license=('GPL') depends=('python-gobject' 'gtk3' 'python-pyenchant' 'gst-python' 'python-pillow' 'python-sqlalchemy' 'python-lxml' 'python-cairo' 'python-requests') -makedepends=('python-pip') +makedepends=('python-pip' 'gendesk') checkdepends=() optdepends=( 'python-beautifulsoup4: Webpage import plugin' @@ -23,7 +23,12 @@ conflicts=('gourmet') source=("$pkgname-$pkgver-py3-none-any.whl::$url/releases/download/$pkgver/$pkgname-$pkgver-py3-none-any.whl") sha256sums=('9f1acf7098e62a8bca932ba43a9f1ee6b94978073824b96c5c1032fce23b12d4') +prepare() { + gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" +} + package() { # https://wiki.archlinux.org/title/Python_package_guidelines#pip PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.whl + install -D -m644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" } |