# $Id: PKGBUILD 104084 2014-01-15 11:36:44Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Konstantin Shabanov # Contributor: Evka # Maintainer: Jose Riha pkgname=udpxy pkgver=1.0.23.0 _pkgver=1.0.23-0 pkgrel=2 pkgdesc="small-footprint UNIX/Linux daemon to relay multicast UDP traffic to client's TCP (HTTP) connection." arch=(i686 x86_64) url="http://udpxy.sf.net" license=('GPL3') source=(http://sourceforge.net/projects/$pkgname/files/$pkgname/Chipmunk-1.0/$pkgname.${_pkgver}-prod.tar.gz $pkgname.service pidfile.patch) md5sums=('3dd99ba264078e873cbe1d98369ed423' '19d76e6fbd876b5a7cdaa3e69cecdb0e' '7a268f58ee964895377c95d16c9c633a') prepare() { cd "$srcdir/$pkgname-${_pkgver}" patch -Np1 -i "${srcdir}/pidfile.patch" sed -i '/ln -s $(INSTALLROOT)\/bin\/$(EXEC) $(INSTALLROOT)\/bin\/$(UDPXREC/s%$(INSTALLROOT)%/usr%' Makefile } build() { cd "$srcdir/$pkgname-${_pkgver}" make } package() { cd "$srcdir/$pkgname-${_pkgver}" make INSTALLROOT="$pkgdir/usr" install install -D -m644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service }