updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / sundtek / PKGBUILD
blob4980810e0a4ec4d52d6ad4aa6e0808cecdf94b16
1 # Maintainer: mockfrog <arch AT mockfrog DOT de>
2 pkgname=sundtek
3 pkgver=111001.1658
4 pkgrel=1
5 pkgdesc="Driver for sundtek media tv pro usb-stick"
6 arch=('i686' 'x86_64')
7 url="http://www.sundtek.com"
8 license="none"
9 install=sundtek.install
10 backup=(etc/sundtek.conf)
11 _filename="sundtek_installer_${pkgver}.sh"
12 source=(http://www.sundtek.de/media/${_filename} sundtek.install sundtek.conf sundtek_do.sh)
13 md5sums=('44116949c24b6af72bed80c04304359a'
14          'b1f34e4ca5445f6b2a2cd19866e49ce2'
15          'd146fc4fe871e56ccb709109f4c5751d'
16          '138fc5a0a443fd0c074287b2566e268d')
18 build() {
19   cd "${srcdir}"
20   sh ${_filename} -e
21   cd ${pkgdir}
22   case "${CARCH}" in
23     i686)
24        echo "extracting files stage 2 - for ${CARCH}"
25        tar xzvf "${srcdir}/32bit/installer.tar.gz"
26        ;;
27     x86_64)
28        echo "extracting files stage 2 - for ${CARCH}"
29        tar xzvf "${srcdir}/64bit/installer.tar.gz"
30        ;;
31     *)
32        echo "architecture ${CARCH} not supported"
33        exit 1
34        ;;
35   esac
37   rm -rf etc/udev/rules.d/80-remote-eeti.rules* 
38   rm -rf etc/udev/rules.d/80-mediasrv.rules
40   install -D ${startdir}/sundtek.conf etc/sundtek.conf
41   install -D ${startdir}/sundtek_do.sh opt/bin/sundtek_do.sh
43   mv etc/ld.so.conf.d/optlib.conf etc/ld.so.conf.d/empia.conf
45   rm -rf tmp
46   chmod ogu=srx opt/bin/mediasrv