# Maintainer: Adrián Chaves Fernández (Gallaecio) pkgname=usb-modeswitch _pkgname=usb_modeswitch pkgver=2.0.1 pkgrel=1 _pkgdata=20131113 pkgdesc="Activating switchable USB devices on Linux." arch=('x86_64') url="http://www.draisberghof.de/usb_modeswitch/" license=('GPL3') depends=('libusb' 'tcl') makedepends=('gcc' 'make') conflicts=(usb_modeswitch) replaces=(usb_modeswitch) categories=('system') backup=("etc/$_pkgname.conf") source=("http://www.draisberghof.de/$_pkgname/$pkgname-$pkgver.tar.bz2" "http://www.draisberghof.de/$_pkgname/$pkgname-data-$_pkgdata.tar.bz2" "usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/$_pkgname/device_reference.txt") md5sums=('e48d4419d0574d342bb183f7465556d0' '7b5ac1226b360ddc366c286e62b3c3a4' '1ec5054e071d6af9ab5b862197222455') build() { cd $srcdir/usb-modeswitch-$pkgver/ make clean make } package() { cd $srcdir/usb-modeswitch-$pkgver/ mkdir -p $pkgdir/usr/lib/udev mkdir -p $pkgdir/etc mkdir -p $pkgdir/usr/share/man/man1 make DESTDIR=${pkgdir} UDEVDIR=${pkgdir}/usr/lib/udev install cp $srcdir/usb-modeswitch-${pkgver}-device_reference.txt $pkgdir/etc/usb_modeswitch.setup cd $srcdir/usb-modeswitch-data-${_pkgdata} make DESTDIR=$pkgdir install RULESDIR=${pkgdir}/usr/lib/udev/rules.d }