blob: d21d65f424f56266ad62f0f5e879e1f7021645b0 (
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.2.1.40.g7ae4c90
pkgrel=1
arch=('x86_64' 'i686')
url="https://github.com/bartwillems/lyriek/"
license=('GPL3')
depends=('dbus' 'gtk3')
makedepends=('rust' 'cargo' 'git' 'desktop-file-utils')
source=("lyriek::git+https://github.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"
}
|