summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96ee64f6cff575e3e4a5857e7145dd7dbcb470a2 (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
# Maintainer: Julian Orth <ju.orth@gmail.com>

pkgname=spotblock-git
pkgver=r13.9a46e40
pkgrel=1
pkgdesc='A spotify ad blocker'
arch=('i686' 'x86_64')
url='https://github.com/mahkoh/spotblock'
license=('GPL3')
depends=('libsystemd' 'libpulse')
makedepends=('cmake')
source=("$pkgname::git+https://github.com/mahkoh/spotblock")
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr ..
    make
}

package() {
    cd "$pkgname/build"
    make DESTDIR="$pkgdir/" install
}