aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-12 15:58:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-12 15:58:46 +0000
commit23d8dd2d13e5d92b606af30f639064db7ae5c0f6 (patch)
tree6704f2fd878c04b08b7df29500bcf0ad288ea9fb
parentb2d3af052c74f87f09bf71bb6be50db7b5054cd1 (diff)
downloadaports-23d8dd2d13e5d92b606af30f639064db7ae5c0f6.tar.bz2
aports-23d8dd2d13e5d92b606af30f639064db7ae5c0f6.tar.xz
testing/usb-modeswitch: upgrade to 1.2.3
also fixes #1046
-rw-r--r--testing/usb-modeswitch/APKBUILD22
1 files changed, 8 insertions, 14 deletions
diff --git a/testing/usb-modeswitch/APKBUILD b/testing/usb-modeswitch/APKBUILD
index b237e86c59..e5e86a513c 100644
--- a/testing/usb-modeswitch/APKBUILD
+++ b/testing/usb-modeswitch/APKBUILD
@@ -1,35 +1,30 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=usb-modeswitch
-pkgver=1.1.7
-pkgrel=2
-_pkgdata=20110227
+pkgver=1.2.3
+pkgrel=0
+_pkgdata=20120120
pkgdesc="A mode switching tool for controlling flip flop (multiple device) USB gear"
url="http://www.draisberghof.de/usb_modeswitch/"
arch="all"
license="GPL"
depends="tcl"
-makedepends="libusb-compat-dev"
+makedepends="libusb-compat-dev coreutils"
install=
subpackages="$pkgname-doc"
source="http://www.draisberghof.de/usb_modeswitch/${pkgname}-${pkgver}.tar.bz2
http://www.draisberghof.de/usb_modeswitch/${pkgname}-data-${_pkgdata}.tar.bz2
- usb_modeswitch.setup
- Makefile.patch"
+ usb_modeswitch.setup"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
- mkdir -p $pkgdir/lib/udev/usb_modeswitch || return 1
- mkdir -p $pkgdir/etc || return 1
- mkdir -p $pkgdir/usr/share/man/man1 || return 1
make clean || return 1
sed -i -e 's/--mode=/-m/' Makefile || return 1
cd ../${pkgname}-data-${_pkgdata}
# sed -i -e 's%install -m644 -t $(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*%cp -R $(PREFIX)/share/usb_modeswitch/* ./usb_modeswitch.d/%' Makefile || return 1
sed -i -e 's/--mode=/-m/' Makefile || return 1
- patch -p1 < ../Makefile.patch
}
build() {
@@ -54,7 +49,6 @@ package() {
cp $srcdir/usb_modeswitch.setup $pkgdir/etc/ || return 1
}
-md5sums="b75e42b7b2d30e9d4cbd5c159f925247 usb-modeswitch-1.1.7.tar.bz2
-2f5e5bfa21a97b705a22f95bec367793 usb-modeswitch-data-20110227.tar.bz2
-9a25756669937ac86774bb55733f09cd usb_modeswitch.setup
-84de2517de202c22801b678f49a07e37 Makefile.patch"
+md5sums="9b29e8b0d93d7604a9e5efc4696d37a3 usb-modeswitch-1.2.3.tar.bz2
+c899cc9c71bb35f3ec600b7cd1455c65 usb-modeswitch-data-20120120.tar.bz2
+9a25756669937ac86774bb55733f09cd usb_modeswitch.setup"