summaryrefslogtreecommitdiff
path: root/user/usbredir/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:20:12 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:20:12 -0500
commit2d93668279aed9d04d659e1c353691e3ff19b58d (patch)
tree87ec78cb62e1d6025c765aaed1d655a34c6e6fb6 /user/usbredir/APKBUILD
parentcba319cb425698285db1f6f3729dff2223a00626 (diff)
downloadpackages-2d93668279aed9d04d659e1c353691e3ff19b58d.tar.gz
packages-2d93668279aed9d04d659e1c353691e3ff19b58d.tar.bz2
packages-2d93668279aed9d04d659e1c353691e3ff19b58d.tar.xz
packages-2d93668279aed9d04d659e1c353691e3ff19b58d.zip
user/usbredir: pull in, fix metadata, modernise
Diffstat (limited to 'user/usbredir/APKBUILD')
-rw-r--r--user/usbredir/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/usbredir/APKBUILD b/user/usbredir/APKBUILD
new file mode 100644
index 000000000..a53f4ef04
--- /dev/null
+++ b/user/usbredir/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer:
+pkgname=usbredir
+pkgver=0.7.1
+pkgrel=1
+pkgdesc="Protocol for using USB devices over a network"
+url="https://www.spice-space.org/usbredir.html"
+arch="all"
+options="!check" # No test suite.
+license="GPL-2.0-or-later AND LGPL-2.1-or-later"
+makedepends="libusb-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
+source="https://www.spice-space.org/download/usbredir/usbredir-$pkgver.tar.bz2 "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+server() {
+ pkgdesc="Simple USB host TCP server"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
+}
+
+sha512sums="f8d26d59d5a530aa413fabe2402fbbd9662760453c2b4e83d34f2e5287c188114ea870f15ae1bc910297649986315be965f0d23d0a2b7b0cec2f207fc65d7598 usbredir-0.7.1.tar.bz2"