summaryrefslogtreecommitdiff
path: root/pcr/freecolor/PKGBUILD
blob: 3a6b63c5e0ef5cd14abc58efd0dbec6dfd4a7cfb (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
# Contributor (Arch): Mariusz Libera <mariusz.libera@gmail.com>
# Contributor (Arch): Vinzenz Vietzke <vinz@archlinux.us>
# Maintainer        : Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=freecolor
pkgver=0.8.8
pkgrel=3
pkgdesc="Displays free memory as a bargraph on the command line."
arch=('i686' 'x86_64')
url="http://www.rkeene.org/oss/freecolor/"
license=('GPL')
depends=('glibc')
source=(http://www.rkeene.org/files/oss/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('438ffe64a6255d61628601f18bb2d990')

prepare() {
	cd $srcdir/$pkgname-$pkgver
	# fix for outdated include
	sed -i '54d' freecolor.c
}

build() {
	cd $srcdir/$pkgname-$pkgver
	./configure --prefix=/usr --without-libstatgrab
	make 
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make prefix="$pkgdir/usr/" install
	install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
	install -m 644 README "${pkgdir}/usr/share/doc/${pkgname}"
}