desktop/usb-modeswitch/PKGBUILD

48 lines
1.4 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=usb-modeswitch
_pkgname=usb_modeswitch
pkgver=1.2.4
pkgrel=1
_pkgdata=20120815
pkgdesc="Activating switchable USB devices on Linux."
arch=('i686' 'x86_64')
url="http://www.draisberghof.de/usb_modeswitch/"
license=('GPL3')
depends=('libusb-compat' '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=('dbd4ce7966d7b4a5a0604a8280f7164d'
'12d7de3210e45ad6f48791d12bbdbf61'
'3588e76bf08f6c9ed51a1de4d086795e')
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
}