mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
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.
This commit is contained in:
parent
0f1e7529aa
commit
48e2749079
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user