summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03ac77368d49b5d3292cf82142af0b76ac0eab95 (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: Addison Bean <addisonbean@gmail.com>

pkgname=paperview-git
pkgver=r15.40162fb
pkgrel=1
pkgdesc='A high performance X11 animated wallpaper setter'
arch=('x86_64')
url='https://github.com/glouw/paperview'
license=('MIT')
makedepends=('git')
depends=('sdl2')
source=("$pkgname-$pkgver::git+https://github.com/glouw/paperview")
sha256sums=("SKIP")

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

build() {
    cd "$pkgname-$pkgver"
    make
}

package() {
    cd "$pkgname-$pkgver"
    PREFIX="$pkgdir/usr" make install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}