summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD31
2 files changed, 19 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 224f1c86f36..6c9ccf015c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = gtimelog
pkgdesc = Small GTK+ app for keeping track of your time
pkgver = 0.11.3
- pkgrel = 1
+ pkgrel = 2
url = https://gtimelog.org/
arch = any
license = GPL
makedepends = python-docutils
+ depends = gtk3
+ depends = hicolor-icon-theme
depends = python
depends = python-gobject
depends = python-setuptools
diff --git a/PKGBUILD b/PKGBUILD
index bf0568ec360..cb107921773 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,21 @@
-# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
+# Maintainer: Andrew Sun <adsun701 at gmail dot com>
+# Contributor: Frederik “Freso” S. Olesen <archlinux@freso.dk>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=gtimelog
pkgver=0.11.3
-pkgrel=1
+pkgrel=2
pkgdesc='Small GTK+ app for keeping track of your time'
arch=('any')
url='https://gtimelog.org/'
license=('GPL')
-depends=('python' 'python-gobject' 'python-setuptools')
+depends=('gtk3' 'hicolor-icon-theme' 'python' 'python-gobject' 'python-setuptools')
makedepends=('python-docutils')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('a5a65b7b929aa3b16ecb4213b56f6573a925613bbce3db1969ca26f31d6b8ab2')
build() {
- cd "$pkgname-$pkgver"
+ cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build
# Generate man page
@@ -22,19 +23,19 @@ build() {
}
package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
# 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"
+ install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "src/${pkgname}/${pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png"
+ install -Dm644 "src/${pkgname}/${pkgname}-large.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
# Install man page
- install -Dm0644 "gtimelog.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+ install -Dm644 "gtimelog.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
# Install additional documentation
- install -Dm0644 "CHANGES.rst" "${pkgdir}/usr/share/doc/${pkgname}/CHANGES.rst"
- install -Dm0644 "CONTRIBUTING.rst" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.rst"
- install -Dm0644 "CONTRIBUTORS.rst" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTORS.rst"
- install -Dm0644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
- install -Dm0644 "TODO.rst" "${pkgdir}/usr/share/doc/${pkgname}/TODO.rst"
+ install -Dm644 "CHANGES.rst" "${pkgdir}/usr/share/doc/${pkgname}/CHANGES.rst"
+ install -Dm644 "CONTRIBUTING.rst" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.rst"
+ install -Dm644 "CONTRIBUTORS.rst" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTORS.rst"
+ install -Dm644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+ install -Dm644 "TODO.rst" "${pkgdir}/usr/share/doc/${pkgname}/TODO.rst"
}