blob: edd4cf458d4fca605b8b7f734d20cef61e6c2377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=usbredir
pkgver=0.6
pkgrel=1
pkgdesc="USB network redirection protocol libraries"
url="http://spice-space.org/page/UsbRedir"
arch="all"
license="GPL2+ LGPL2+"
depends=""
depends_dev="libusbx-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
source="http://spice-space.org/download/usbredir/usbredir-$pkgver.tar.bz2"
_builddir="$srcdir"/usbredir-$pkgver
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
server() {
pkgdesc="Simple USB host TCP server"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
}
md5sums="1b7ad820be7fd2a0e4ce8261a4389f15 usbredir-0.6.tar.bz2"
sha256sums="028184960044ea4124030000b3c55a35c3238835116e3a0fbcaff449df2c8edf usbredir-0.6.tar.bz2"
sha512sums="2c5b6ea2580ab983b8087d0c7c0bf9dffb7ebff84928c01fec3bf44a08fc530db7719f0b33953e486fdc11763123a3eb9349a79b0241269ad9e6b16c6ef5bb9f usbredir-0.6.tar.bz2"
|