summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2772d8acadbb6e4a995f43868258f784fbcf8226 (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
# Maintainer: Mateusz Maćkowski <mateusz@mackowski.org>
pkgname=tundra
pkgver=0.1
pkgrel=1
epoch=
pkgdesc="MyAnimeList scrobbler"
arch=('x86_64')
url="https://tundra.moe"
license=('GPL3')
groups=()
depends=('gtk3' 'dbus')
makedepends=('rust')
checkdepends=()
optdepends=()
provides=()
conflicts=()
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/2c55e0ce48462a75ca8680dc2a9828887aea1792/anime-relations.txt")
noextract=()
md5sums=('1e3427b3cc4fc7f36afe673d02983eb7'
         'ec26a1895b54f4f7a03538e117354311')
validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
	cp "$srcdir/anime-relations.txt" "vendor/anime-relations/"
}

build() {
	cd "$pkgname-$pkgver"
    cargo build --release --locked --all-features
}

check() {
    return 0
}

package() {
	cd "$pkgname-$pkgver"
    install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
    install -Dm 755 data/com.m4tx.Tundra.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
    install -Dm 755 data/com.m4tx.Tundra.desktop -t "${pkgdir}/usr/share/applications"
}