summaryrefslogtreecommitdiff
path: root/community/ushare/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ushare/PKGBUILD')
-rw-r--r--community/ushare/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/community/ushare/PKGBUILD b/community/ushare/PKGBUILD
new file mode 100644
index 000000000..09a8ffa37
--- /dev/null
+++ b/community/ushare/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 90735 2013-05-13 14:41:02Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
+# Contributor: kastor <kastor@fobos.org.ar>
+
+pkgname=ushare
+pkgver=1.1a
+pkgrel=19
+pkgdesc="A free UPnP A/V Media Server for Linux"
+url="http://ushare.geexbox.org"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('libupnp' 'libdlna' 'sudo')
+backup=('etc/ushare/ushare.conf'
+ 'etc/conf.d/ushare')
+install=ushare.install
+source=("http://ushare.geexbox.org/releases/${pkgname}-${pkgver}.tar.bz2"
+ "upnp-build-fix.patch"
+ "ushare-config.patch"
+ "segfault.patch"
+ "ushare.service")
+md5sums=('5bbcdbf1ff85a9710fa3d4e82ccaa251'
+ '32c29f9f673e8b3a3d9e7bf5e60febbc'
+ '5243475c0cebc5db49296b2f3691085b'
+ '0b0fbf5d103f0ebb72716cbad0b28ffa'
+ 'db6187257b4623ef155b5575526d5d87')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ sed -i -e \
+ "s%^INSTALL=\"/usr/bin/install -c\"$%INSTALL=\"$(which install) -c\"%" \
+ configure
+ patch -p1 <$srcdir/upnp-build-fix.patch
+ patch -p1 <$srcdir/ushare-config.patch
+ patch -p1 <$srcdir/segfault.patch
+ ./configure --prefix=/usr --sysconfdir=/etc/ushare \
+ --enable-dlna --with-libdlna-dir=/usr/include/libavformat
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+ rm -rf ${pkgdir}/etc/${pkgname}/init.d
+ install -dm0755 ${pkgdir}/etc/conf.d/
+ cat >${pkgdir}/etc/conf.d/ushare <<EOF
+#PARAMS="-c /tmp -i eth0"
+PARAMS=
+USHARE_USER=ushare
+EOF
+ install -Dm0644 src/ushare.1 $pkgdir/usr/share/man/man1/ushare.1
+ install -Dm0644 $srcdir/ushare.service $pkgdir/usr/lib/systemd/system/ushare.service
+}