summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2501f35e0f73c3957bc51ada1a876adc097a87c9 (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
# Maintainer: Evan Purkhiser <evanpurkhiser@gmail.com>

pkgname=setcolors-git
pkgdesc="Allows you to set the linux VT101 default color palette"
license=('MIT')
url="https://github.com/evanpurkhiser/linux-vt-setcolors"
pkgver=62.4e1686f
pkgrel=1

source=("$pkgname::git+$url.git")
md5sums=('SKIP')
depends=('glibc')
makedepends=('git')
arch=('i686' 'x86_64')

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

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

package() {
	cd "$srcdir/$pkgname"

	make PREFIX=/usr DESTDIR="${pkgdir}" install
	install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}