summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41c6b89c102abe63c66ac3ed49e7ae60be8528c6 (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: Ariejan de Vroom <ariejan[at]devroom[dot]io>
pkgname=txdx-bin
_pkgname=txdx
pkgver=1.1.5
pkgrel=1
pkgdesc="Todo's like you've never seen before"
arch=('x86_64')
url='https://www.txdx.eu'
license=('GPL2')
provides=("$_pkgname")
conflicts=("$_pkgname")
depends=('gtk3' 'zenity')

source=("https://gitlab.devroom.io/api/v4/projects/17/packages/generic/txdx/1.1.5/txdx-1.1.5-linux-x64.tar.gz")
sha256sums=('f10974825aa4dda8f25bfe28201698ac2c92fd736c4e57f60aa709ccb66b66ef')

package() {
	install -dm755 ${pkgdir}/opt/${_pkgname}/
	mv ${_pkgname} ${pkgdir}/opt/${_pkgname}/
	mv data ${pkgdir}/opt/${_pkgname}/
	mv lib ${pkgdir}/opt/${_pkgname}/
	
	install -dm755 ${pkgdir}/usr/bin
	ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}

	install -Dm 644 ${pkgdir}/opt/${_pkgname}/data/flutter_assets/assets/txdx.png ${pkgdir}/usr/share/pixmaps/txdx.png

	install -dm 755 "${pkgdir}/usr/share/applications"
	cat > ${pkgdir}/usr/share/applications/${_pkgname}.desktop << EOF
[Desktop Entry]
Name=TxDx
Comment=Todo.txt for your desktop
Exec=${_pkgname}
Version=${pkgver}
Type=Application
Icon=${_pkgname}
Terminal=false
StartupNotify=false
Categories=Productivity;Utilities;
EOF
}