summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6a93c22f1f040cf9cf6550abefcc75d74ffce84 (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
# Maintainer: Dario Ostuni <another.code.996@gmail.com>
pkgname=grainbow-git
pkgver=r2.cff35ea
pkgrel=2
pkgdesc="Color the screen with a rainbow (libgamma version)"
arch=('i686' 'x86_64')
url="https://github.com/dariost/GRainbow"
license=('APACHE2')
depends=('libgammamm')
options=()
source=("git+https://github.com/dariost/GRainbow.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/GRainbow"
	echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/GRainbow"
    make
}

package() {
    cd "$srcdir/GRainbow"
    install -Dm755 grainbow "$pkgdir/usr/bin/grainbow"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/grainbow/LICENSE"
}