summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 191636b06b19549708a5ede586918f80a14c59f1 (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
pkgname=lyriek-git
pkgver=0.1.0.18.g15d1373
pkgrel=1
arch=('x86_64' 'i686')
url="https://gitlab.com/bartwillems/lyriek"
license=('GPL3')
depends=('dbus' 'gtk3')
makedepends=('rust' 'cargo' 'git' 'desktop-file-utils')
source=("lyriek::git+https://gitlab.com/bartwillems/lyriek.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/lyriek"
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/lyriek"
	cargo build --release
}

package() {
	pkgdesc="A multi-threaded GTK application to fetch lyrics of currently playing songs"
	provides=('lyriek')

	cd "$srcdir/lyriek"
	
	desktop-file-install -m 644 --dir "$pkgdir/usr/share/applications/" "extras/lyriek.desktop"
	install -D -m755 "target/release/lyriek" "$pkgdir/usr/bin/lyriek"
	install -D -m644 "assets/logo.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/lyriek.svg"
}