summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e930364a680eb1f5b8fa7a30d5f6a8262cbf100 (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
# Maintainer: Marius Orcsik <marius.orcsik@gmail.com>
pkgname=plasma-wallpaper-himawari-git
pkgver=r7.2049a94
pkgrel=1
pkgdesc="Plasma Wallpaper Himawari"
arch=("any")
url="https://github.com/Hyperz/plasmahimawari"
license=('GPL')
depends=('plasma-workspace')
makedepends=('git' 'cmake') 
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/Hyperz/plasmahimawari.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

    # Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	cmake -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}