summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ba20bea9f7979f5fdec466b4671c194d9d662b4 (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=3
pkgdesc="Color the screen with a rainbow (libgamma version)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
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"
}