aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-18 08:51:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-18 08:53:44 +0000
commit48e27490792fee628dde2b52179717b178a7de8d (patch)
treee151b08cb0e8addffb27ede3ec5ee8e940096c22
parent0f1e7529aaab8fe33f72f9134fdce252ae886f81 (diff)
downloadaports-48e27490792fee628dde2b52179717b178a7de8d.tar.bz2
aports-48e27490792fee628dde2b52179717b178a7de8d.tar.xz
main/usb-modeswitch: split out udev files
the usb_modeswitch_dispatcher is a tcl script but is only needed by udev. We split it out so we avoid the tcl dependency.
-rw-r--r--main/usb-modeswitch/APKBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/main/usb-modeswitch/APKBUILD b/main/usb-modeswitch/APKBUILD
index 03458f373c..d5ac3ce68e 100644
--- a/main/usb-modeswitch/APKBUILD
+++ b/main/usb-modeswitch/APKBUILD
@@ -1,16 +1,16 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=usb-modeswitch
pkgver=2.2.0
-pkgrel=1
+pkgrel=2
_pkgdata=20140529
pkgdesc="A mode switching tool for controlling flip flop (multiple device) USB gear"
url="http://www.draisberghof.de/usb_modeswitch/"
arch="all"
license="GPL2+"
-depends="tcl"
-makedepends="libusb-compat-dev coreutils"
+depends=""
+makedepends="libusb-compat-dev coreutils tcl"
install=
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-udev"
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"
@@ -20,7 +20,7 @@ prepare() {
cd "$_builddir"
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
@@ -48,6 +48,15 @@ package() {
cp $srcdir/usb_modeswitch.setup $pkgdir/etc/ || return 1
}
+udev() {
+ pkgdesc="udev support for usb-modeswitch"
+ depends="tcl eudev $pkgname=$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/usr/sbin
+ mv "$pkgdir"/lib "$subpkgdir"/ || return 1
+ mv "$pkgdir"/usr/sbin/usb_modeswitch_dispatcher \
+ "$subpkgdir"/usr/sbin/
+}
+
md5sums="f323fe700edd6ea404c40934ddf32b22 usb-modeswitch-2.2.0.tar.bz2
dff94177781298aaf0b3c2a3c3dea6b2 usb-modeswitch-data-20140529.tar.bz2
9a25756669937ac86774bb55733f09cd usb_modeswitch.setup"