archrelease: copy trunk to community-any
[ArchLinux/community.git] / udpxy / trunk / PKGBUILD
blobeb7af9e8bbadccbb3b300a2b974b0361ee1ec22d
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Konstantin Shabanov <kes.eclipse@gmail.com>
3 # Contributor: Evka
4 # Maintainer: Jose Riha <jose 1711 gmail com>
6 pkgname=udpxy
7 pkgver=1.0.25.1
8 _pkgver=1.0-24.1
9 pkgrel=1
10 pkgdesc="small-footprint UNIX/Linux daemon to relay multicast UDP traffic to client's TCP (HTTP) connection."
11 arch=(x86_64)
12 url="https://github.com/pcherenkov/udpxy"
13 license=('GPL3')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/pcherenkov/udpxy/archive/${_pkgver}.tar.gz"
15         $pkgname.service)
16 sha256sums=('27e5d3d2bae29522354d1505a3cc931c96953846d68eeb25bb99fe9b0cb6cbe0'
17             '8ea0c97ccd00bff2bc3b1d987d5e55b215bc4cd966623be669160445bdd5a25a')
19 prepare() {
20   sed -e 's|-Werror||' -i udpxy-${_pkgver}/chipmunk/Makefile
23 build() {
24   cd "$srcdir"/udpxy-${_pkgver}/chipmunk
25   make PREFIX=/usr CC="gcc ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
28 package() {
29   cd "$srcdir"/udpxy-${_pkgver}/chipmunk
30   make DESTDIR="$pkgdir" PREFIX=/usr install
31   install -D -m644 "$srcdir"/$pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service