2011-08-26 07:10:23 +08:00
|
|
|
pkgname=usb-modeswitch
|
|
|
|
_pkgname=usb_modeswitch
|
2015-12-01 02:29:22 +08:00
|
|
|
pkgver=2.2.6
|
2012-08-28 23:17:31 +08:00
|
|
|
pkgrel=1
|
2015-12-01 02:29:22 +08:00
|
|
|
_pkgdata=20151101
|
2011-08-26 07:10:23 +08:00
|
|
|
pkgdesc="Activating switchable USB devices on Linux."
|
2014-01-01 01:51:57 +08:00
|
|
|
arch=('x86_64')
|
2011-08-26 07:10:23 +08:00
|
|
|
url="http://www.draisberghof.de/usb_modeswitch/"
|
|
|
|
license=('GPL3')
|
2014-01-01 01:51:57 +08:00
|
|
|
depends=('libusb' 'tcl')
|
2011-08-26 07:10:23 +08:00
|
|
|
makedepends=('gcc' 'make')
|
|
|
|
conflicts=(usb_modeswitch)
|
|
|
|
replaces=(usb_modeswitch)
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('system')
|
2011-08-26 07:10:23 +08:00
|
|
|
backup=("etc/$_pkgname.conf")
|
|
|
|
source=("http://www.draisberghof.de/$_pkgname/$pkgname-$pkgver.tar.bz2"
|
|
|
|
"http://www.draisberghof.de/$_pkgname/$pkgname-data-$_pkgdata.tar.bz2"
|
2012-08-28 23:17:31 +08:00
|
|
|
"usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/$_pkgname/device_reference.txt")
|
2015-12-01 02:29:22 +08:00
|
|
|
sha256sums=('7ee42be2fe26dde20c58f54bf678fb136d2706250e4aa74f06fc97268a46e90f'
|
|
|
|
'584d362bc0060c02016edaac7b05ebd6558d5dcbdf14f1ae6d0ec9630265a982'
|
|
|
|
'07d32333eda6b8c19572490e01ab6e7b6912fb07a4b2f0f491ddb80ad7eceed3')
|
2011-08-26 07:10:23 +08:00
|
|
|
|
2012-08-28 23:17:31 +08:00
|
|
|
build() {
|
|
|
|
cd $srcdir/usb-modeswitch-$pkgver/
|
2011-08-26 07:10:23 +08:00
|
|
|
make clean
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-08-28 23:17:31 +08:00
|
|
|
cd $srcdir/usb-modeswitch-$pkgver/
|
|
|
|
|
|
|
|
mkdir -p $pkgdir/usr/lib/udev
|
|
|
|
mkdir -p $pkgdir/etc
|
|
|
|
mkdir -p $pkgdir/usr/share/man/man1
|
2011-08-26 07:10:23 +08:00
|
|
|
|
2012-08-28 23:17:31 +08:00
|
|
|
make DESTDIR=${pkgdir} UDEVDIR=${pkgdir}/usr/lib/udev install
|
2011-08-26 07:10:23 +08:00
|
|
|
|
2012-08-28 23:17:31 +08:00
|
|
|
cp $srcdir/usb-modeswitch-${pkgver}-device_reference.txt $pkgdir/etc/usb_modeswitch.setup
|
2011-08-26 07:10:23 +08:00
|
|
|
|
2012-08-28 23:17:31 +08:00
|
|
|
cd $srcdir/usb-modeswitch-data-${_pkgdata}
|
|
|
|
make DESTDIR=$pkgdir install RULESDIR=${pkgdir}/usr/lib/udev/rules.d
|
2011-08-26 07:10:23 +08:00
|
|
|
}
|
2014-01-01 01:57:46 +08:00
|
|
|
|