summaryrefslogtreecommitdiff
path: root/community/sisctrl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sisctrl/PKGBUILD')
-rw-r--r--community/sisctrl/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/sisctrl/PKGBUILD b/community/sisctrl/PKGBUILD
new file mode 100644
index 000000000..916997e99
--- /dev/null
+++ b/community/sisctrl/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 65441 2012-02-21 05:47:41Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: ice-man <icemanf@gmail.com>
+
+pkgname=sisctrl
+pkgver=0.0.20051202
+pkgrel=6
+arch=(i686 x86_64)
+pkgdesc="Display Control Panel for XFree86/X.org SiS driver"
+makedepends=('pkgconfig')
+depends=('gtk2' 'libxxf86vm' 'libxv')
+url="http://www.winischhofer.eu/linuxsisvga.shtml"
+license=("GPL")
+source=(http://www.winischhofer.net/sis/sisctrl-$pkgver.tar.gz)
+md5sums=('d9db755fe9fd40809b5c30d1ab286d62')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ if [ -e /usr/lib/libXv.so ]; then
+ LDFLAGS=-lm ./configure --with-xv-path=/usr/lib
+ else
+ LDFLAGS=-lm ./configure
+ fi
+
+ make
+
+ mkdir -p $pkgdir/usr/bin
+ mkdir -p $pkgdir/usr/man/man1/
+ mkdir -p $pkgdir/usr/share/pixmaps
+ mkdir -p $pkgdir/usr/share/applications
+
+ install -m 755 sisctrl $pkgdir/usr/bin
+ cp sisctrl.1x sisctrl.1; gzip sisctrl.1
+ install -m 644 sisctrl.1.gz $pkgdir/usr/man/man1/
+ install -m 644 icons/32x32/sisctrl.xpm $pkgdir/usr/share/pixmaps
+ install -m 644 icons/16x16/sisctrl.png $pkgdir/usr/share/pixmaps/sisctrl_16x16.png
+ install -m 644 icons/32x32/sisctrl.png $pkgdir/usr/share/pixmaps/sisctrl_32x32.png
+ install -m 644 icons/48x48/sisctrl.png $pkgdir/usr/share/pixmaps/sisctrl_48x48.png
+ install -m 644 extra/sisctrl.desktop $pkgdir/usr/share/applications
+
+ mv $pkgdir/usr/man $pkgdir/usr/share/
+}