summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-12 00:59:57 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-12 01:01:36 +0100
commitfe71f5434eb4430089acd40156ebf1df39a87783 (patch)
tree1add0d557c76a2303b4d721c8e0cde605d41b2be
parent443907f3ac6e72469d8c0167533298aa9c7fb968 (diff)
downloadabslibre-fe71f5434eb4430089acd40156ebf1df39a87783.tar.gz
abslibre-fe71f5434eb4430089acd40156ebf1df39a87783.tar.bz2
abslibre-fe71f5434eb4430089acd40156ebf1df39a87783.zip
pcr: Add timelineproject-hg
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--pcr/timelineproject-hg/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/timelineproject-hg/PKGBUILD b/pcr/timelineproject-hg/PKGBUILD
new file mode 100644
index 000000000..0f07753ac
--- /dev/null
+++ b/pcr/timelineproject-hg/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer (AUR): Thibaud Kehler <thibaud.kehler at gmx dot net>
+pkgname=timelineproject-hg
+pkgver=2.2.0.r6954
+pkgrel=1
+pkgdesc="Aims to create a free, cross-platform application for displaying and navigating events on a timeline."
+arch=('any')
+url="http://thetimelineproj.sourceforge.net/"
+license=('GPL3')
+depends=('python-humblewx' 'python-wxpython' 'python')
+makedepends=('mercurial' 'rsync')
+provides=("${pkgname%-hg}")
+conflicts=("${pkgname%-hg}")
+source=("${pkgname%-hg}::hg+http://hg.code.sf.net/p/thetimelineproj/main"
+ "timelineproject.desktop")
+md5sums=('SKIP'
+ 'ffac86645fb812a7f0f6d4a110d907f2')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-hg}/"
+ printf "%s.r%s" "$(hg tags -q | sed -n '2p')" "$(hg identify -n)"
+}
+
+package() {
+ mkdir -p "${pkgdir}/opt/"
+ rsync -a --exclude=".*" "$srcdir/${pkgname%-hg}/" "${pkgdir}/opt/${pkgname%-hg}/"
+ #chmod -R 755 "${pkgdir}/opt/${pkgname%-hg}/"
+ mkdir -p "${pkgdir}/usr/bin/"
+ ln -s "/opt/${pkgname%-hg}/source/timeline.py" "${pkgdir}/usr/bin/${pkgname%-hg}"
+
+ # icons
+ mkdir -p "${pkgdir}/usr/share/icons/hicolor/16x16/apps/"
+ mkdir -p "${pkgdir}/usr/share/icons/hicolor/32x32/apps/"
+ mkdir -p "${pkgdir}/usr/share/icons/hicolor/48x48/apps/"
+ cp "${pkgdir}/opt/${pkgname%-hg}/icons/48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/timelineproject.png"
+ cp "${pkgdir}/opt/${pkgname%-hg}/icons/32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/timelineproject.png"
+ cp "${pkgdir}/opt/${pkgname%-hg}/icons/16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/timelineproject.png"
+
+ # .desktop entry
+ mkdir -p "${pkgdir}/usr/share/applications/"
+ cp "${srcdir}/timelineproject.desktop" "${pkgdir}/usr/share/applications/"
+}