summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 335d51ffa2b00da7d9502d9a64b4db6dce711321 (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=r20.c58364e
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
}