blob: 6c7b8371e37202d3fd7ed934f3568d326c1d774e (
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
|
# Maintainer: tblFlip <root@tblflip.de>
pkgname=liftoff-bin
pkgver=0.10.10
pkgrel=1
pkgdesc="A mobile and desktop lemmy client written in flutter"
_pkgname="${pkgname%-bin}"
arch=("x86_64")
url="https://github.com/liftoff-app/liftoff"
license=("GPL2")
source=(
"$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/$_pkgname-v$pkgver-$arch-linux.tar.gz"
"$pkgname-$pkgver.svg::$url/raw/v$pkgver/assets/app_icon.svg"
"$_pkgname.desktop"
)
sha256sums=(
"875be506ee2f283d1ecbd0115d1a9f90ccb497bd0f225e5b9c7af5fb67cf06e8"
"4295302ec05ff67bb0ed808c1d0b316402010218e064957d655a1274a83cf80c"
"930a365a43afed19a6f212a0c036e580596ce072d8a56504d295503672cb4eb3"
)
provides=("$_pkgname")
conflicts=("$_pkgname")
package() {
install -Dm644 "$pkgname-$pkgver.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$_pkgname.svg"
install -Dm644 "$_pkgname.desktop" -t "$pkgdir/usr/share/applications"
install -d "$pkgdir/opt/$_pkgname"
install -d "$pkgdir/usr/bin"
cp -ar --no-preserve=ownership data "$pkgdir/opt/$_pkgname/data"
cp -ar --no-preserve=ownership lib "$pkgdir/opt/$_pkgname/lib"
cp -a --no-preserve=ownership Liftoff "$pkgdir/opt/$_pkgname/Liftoff"
ln -s "/opt/$_pkgname/Liftoff" -t "$pkgdir/usr/bin"
chown -R root:root "$pkgdir/"
}
|