-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
50 lines (46 loc) · 1.35 KB
/
PKGBUILD
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
pkgver=0.4.0
pkgrel=2
epoch=
pkgdesc="MyAnimeList scrobbler"
arch=('x86_64')
url="https://tundra.moe"
license=('GPL3')
groups=()
depends=('gtk4' 'libadwaita' 'dbus')
makedepends=('rust')
checkdepends=()
optdepends=()
provides=()
conflicts=('tundra-git')
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://github.com/m4tx/$pkgname/archive/v$pkgver.tar.gz"
"https://raw.githubusercontent.com/erengy/anime-relations/d0af426fa3e18d54d55f90c25ecfb96960394406/anime-relations.txt")
noextract=()
md5sums=('1728b56f5985144032c06b3b9104fae6'
'b920d517cd5026ff02207bd874bca756')
validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
cp "$srcdir/anime-relations.txt" "vendor/anime-relations/"
}
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked --all-features --target-dir target
}
check() {
return 0
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 target/release/${pkgname} -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/"
}