blob: ed72541ec044c80afc8f30fa8af4db345a4eac3a (
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
64
65
|
# Maintainer: Retrowave Hyena <retrowavehyena@gmail.com>
pkgname=recon-git
pkgver=r308.0f10293
pkgrel=1
pkgdesc="A Resonite contacts app built with Flutter"
arch=('x86_64')
url="https://github.com/RetrowaveHyena/ReCon"
license=('GPL3')
depends=('gtk3' 'mpv' 'libepoxy' 'xdg-user-dirs')
makedepends=('flutter-bin' 'clang' 'cmake' 'ninja' 'pkg-config' 'git')
provides=('recon')
conflicts=('recon')
source=("$pkgname::git+https://github.com/RetrowaveHyena/ReCon.git")
sha256sums=('SKIP')
keywords=('resonite' 'contacts' 'vr' 'chat' 'flutter' 'messaging')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
export GIT_CONFIG_GLOBAL="$srcdir/.gitconfig"
git config --global --add safe.directory '*'
flutter config --no-analytics
flutter pub get
}
build() {
cd "$pkgname"
flutter build linux --release
}
package() {
cd "$pkgname"
# Install the bundle
install -dm755 "$pkgdir/opt/recon"
cp -r build/linux/x64/release/bundle/. "$pkgdir/opt/recon/"
# Wrapper script so the binary is on PATH
install -dm755 "$pkgdir/usr/bin"
cat > "$pkgdir/usr/bin/recon" <<EOF
#!/bin/sh
exec /opt/recon/recon "\$@"
EOF
chmod +x "$pkgdir/usr/bin/recon"
# Desktop entry
install -dm755 "$pkgdir/usr/share/applications"
cat > "$pkgdir/usr/share/applications/recon.desktop" <<EOF
[Desktop Entry]
Name=ReCon
Comment=A Resonite contacts app
Exec=recon
Icon=recon
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
EOF
# Icon
install -Dm644 "assets/images/logo512.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/recon.png"
}
|