blob: a436e067c617fe276a3ed7e3f339ae96837767af (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Ariejan de Vroom <ariejan[at]devroom[dot]io>
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')
depends=('gtk3' 'zenity')
makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter')
source=("https://gitlab.devroom.io/ariejan/txdx/-/archive/1.1.5/txdx-1.1.5.tar.gz")
sha256sums=('b8f11d72cdc8f53a884bad8322a32ba8c06e2d21701f07c251e3b5535cbb10a1')
prepare() {
_flutter_dir="${srcdir}/flutter"
PATH="${_flutter_dir}/bin:${PATH}"
export PATH
msg2 "Copying '/opt/flutter' to '${_flutter_dir}' ..."
cp -af /opt/flutter "${_flutter_dir}"
flutter config --no-analytics
flutter config --enable-linux-desktop
cd ${pkgname}-${pkgver}
flutter clean
flutter pub get
}
build() {
_flutter_dir="${srcdir}/flutter"
PATH="${_flutter_dir}/bin:${PATH}"
export PATH
cd ${pkgname}-${pkgver}
flutter build linux --release --verbose
}
package() {
install -dm755 ${pkgdir}/opt
mv ${pkgname}-${pkgver}/build/linux/x64/release/bundle ${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/${pkgname}.png ${pkgdir}/usr/share/pixmaps/txdx.png
install -dm 755 "${pkgdir}/usr/share/applications"
cat > ${pkgdir}/usr/share/applications/txdx.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
}
|