-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD-git
50 lines (46 loc) · 1.21 KB
/
PKGBUILD-git
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
# Maintainer: Mateusz Maćkowski <[email protected]>
pkgname=tundra-git
pkgver=0.3.0.014070
pkgrel=1
epoch=
pkgdesc="MyAnimeList scrobbler (git version)"
arch=('x86_64')
url="https://tundra.moe"
license=('GPL3')
groups=()
depends=('gtk4' 'libadwaita' 'dbus')
makedepends=('rust' 'git')
checkdepends=()
optdepends=()
provides=('tundra')
conflicts=('tundra')
replaces=()
backup=()
options=()
install=
changelog=
source=("git://github.com/m4tx/tundra"
"https://raw.githubusercontent.com/erengy/anime-relations/master/anime-relations.txt")
noextract=()
md5sums=('SKIP'
'SKIP')
validpgpkeys=()
prepare() {
cd "tundra"
cp "$srcdir/anime-relations.txt" "vendor/anime-relations/"
}
build() {
cd "tundra"
cargo build --release --locked --all-features --target-dir target
}
check() {
return 0
}
package() {
cd "tundra"
install -Dm 755 target/release/tundra -t "${pkgdir}/usr/bin"
install -Dm 755 data/moe.tundra.Tundra.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
install -Dm 755 data/moe.tundra.Tundra.desktop -t "${pkgdir}/usr/share/applications"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp -r target/locale "$pkgdir/usr/share/"
}