summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41ff4fcd63537faff4d8fff12c97e1c09fa03016 (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
# Maintainer: Rodrigo Leite <rodrigo@leite.dev>
_pkgname=klausies
pkgname=${_pkgname}-git
pkgver=v0.1
pkgrel=1
pkgdesc='Tool for submitting listens to various services (Last.FM, Listenbrainz, etc)'
arch=('x86_64')
url="https://github.com/RodrigoLeiteF/klausies"
license=('GPLv2')
makedepends=('rust' 'cargo' 'git')
provides=('klausies-git')
conflicts=('klausies-git')
source=("git+https://github.com/RodrigoLeiteF/klausies")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --tags | sed 's/-/+/g'
}

package() {
    cd klausies
    cargo build --release
    mkdir -p $pkgdir/usr/bin
    mv target/release/klausies $pkgdir/usr/bin

    mkdir -p $pkgdir/usr/lib/systemd/user
    mv klausies.service $pkgdir/usr/lib/systemd/user
}