summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1dd552dce6a048ead476cd20131fc62ed40749e6 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: melchips <truphemus dot francois at gmail dot com>
pkgname=gluqlo-git
pkgver=r25.b36de79
pkgrel=1
pkgdesc="Flip clock screensaver like Fliqlo"
arch=('x86_64')
url="https://github.com/alexanderk23/gluqlo"
license=('custom:isc')
groups=()
depends=('sdl' 'sdl_ttf' 'sdl_gfx')
optdepends=('xscreensaver')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('gluqlo::git+https://github.com/alexanderk23/gluqlo.git')
noextract=()
md5sums=('SKIP')

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

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

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

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

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
	mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
	cp LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
}