diff options
author | Frederik “Freso” S. Olesen | 2018-06-04 18:50:32 +0200 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2018-06-04 18:50:32 +0200 |
commit | b7a589dbcf5f51e2095d076bd3b71a034badcb37 (patch) | |
tree | 51808915df7d611b7feee3cdb8fdeee2f340097f | |
parent | d7a52093020e33a212b25ff3faa9a210a844d14f (diff) | |
download | aur-b7a589dbcf5f51e2095d076bd3b71a034badcb37.tar.gz |
Install .desktop and icon file(s) from upstream
gtimelog-large.png is 400x400, but installing into 512x512 as that is
the smallest category that the icon fits into, per hicolor's
index.theme.
Changes heavily inspired by (very) similar patch by Mrmaxmeier.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = gtimelog pkgdesc = Small GTK+ app for keeping track of your time pkgver = 0.11 - pkgrel = 1 + pkgrel = 2 url = https://gtimelog.org/ arch = any license = GPL @@ -3,7 +3,7 @@ pkgname=gtimelog pkgver=0.11 -pkgrel=1 +pkgrel=2 pkgdesc='Small GTK+ app for keeping track of your time' arch=('any') url='https://gtimelog.org/' @@ -15,4 +15,9 @@ sha256sums=('ab43075afdd732e35bfc9f39ee425c23efe0f68258f3bc5688791a12028e6fc7') package() { cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 + + # Install .desktop file and icon(s) + install -Dm0644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -Dm0644 "src/${pkgname}/${pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png" + install -Dm0644 "src/${pkgname}/${pkgname}-large.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png" } |