updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / sisfbctrl / PKGBUILD
blobdc54518c543672643cc694208745e804a7e254f8
1 # Contributor: ice-man <icemanf@gmail.com>
2 pkgname=sisfbctrl
3 pkgver=020305
4 pkgrel="1" 
5 pkgdesc="sisfbctrl a small utility to change the screen's position on the TV, and to enable or disable CRT1 VGA output after sisfb has been started"
6 provides=sisfbctrl
7 makedepends=('gcc' 'make')
8 depends=()
9 source=(http://www.winischhofer.net/sis/sisfbctrl_src_$pkgver-1.tar.gz)
10 url="http://www.winischhofer.at/linuxsisvga.shtml"
11 md5sums=('b190274e81098296d2d06c73b9bb0521')
12 license="GPL"
14 # This is needed due to that downloaded file is wrong so tar give an error but you can succesfully avoid that 
15 NOEXTRACT=1
17 build() {
18   cd $startdir/src/
20   echo -e "\033[1;32m==>\033[1;0m \033[1;1m$1\033[1;0m" >&2
21   msg "Validating source files with MD5sums"
22   echo "${md5sums[0]}  $file" | md5sum -c - >/dev/null 2>&1
23   if [ $? -ne 0 ]; then
24      echo "    $file ... FAILED" >&2
25      exit;
26   fi
28   echo "    $file ... Passed" >&2  
30   echo -e "\033[1;32m==>\033[1;0m \033[1;1m$1\033[1;0m" >&2
31   msg "Extracting Sources..."
32   msg "\ttar --use-compress-program=gzip -xf $file"
33   tar --use-compress-program=gzip -xf $file >/dev/null 2>&1
35   ./compile
37   mkdir -p $startdir/pkg/usr/bin
39   install -m 755 sisfbctrl $startdir/pkg/usr/bin