summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoractionless2020-03-30 13:05:12 +0200
committeractionless2020-03-30 13:05:12 +0200
commitffa97583463bfe8f3d8639bab3faabb748f50332 (patch)
tree8bfc71350a8c4cbc44fbec6e4ad25ebd4a23c019
parent2a1e042f84067fc33650c19759695b6c50f995c5 (diff)
downloadaur-ffa97583463bfe8f3d8639bab3faabb748f50332.tar.gz
add desktop file and icon
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD14
2 files changed, 13 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 927b361df43..3b13a13da17 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = python-gaphor-git
pkgdesc = Simple and easy to use modeling tool for UML using GTK3
pkgver = 1.2.0.r50.g2521a448
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/gaphor/gaphor
arch = x86_64
arch = i686
license = Apache
makedepends = git
makedepends = python-pip
+ makedepends = gendesk
depends = python-gaphas
depends = python-typing_extensions
depends = python-generic
diff --git a/PKGBUILD b/PKGBUILD
index e641f626243..c9e3bf120b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,13 @@
# Maintainer: Yauhen Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
-_pkgname=python-gaphor
+_name=gaphor
+_pkgname="python-${_name}"
pkgname="${_pkgname}-git"
pkgver=1.2.0.r50.g2521a448
-pkgrel=1
+pkgrel=2
pkgdesc="Simple and easy to use modeling tool for UML using GTK3"
arch=('x86_64' 'i686')
-url="https://github.com/gaphor/gaphor"
+url="https://github.com/gaphor/${_name}"
license=('Apache')
source=(
"${_pkgname}::git+${url}.git#branch=master"
@@ -20,6 +21,7 @@ depends=(
makedepends=(
'git'
'python-pip'
+ 'gendesk'
)
optdepends=(
)
@@ -35,9 +37,15 @@ pkgver() {
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
+prepare() {
+ gendesk -f --pkgname="$_name" --pkgdesc="$pkgdesc" --categories=Development PKGBUILD
+}
+
package() {
cd "${srcdir}/${_pkgname}"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps .
+ install -Dm644 "$srcdir/${_name}.desktop" -t "$pkgdir"/usr/share/applications
+ install -Dm644 "./logos/${_name}.svg" "$pkgdir"/usr/share/pixmaps/${_name}.svg
}
# vim: ft=PKGBUILD