blob: 0f07753ac21c7e5b2600b3e30a1c6942774bd46d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/"
}
|