blob: 62d562bfe9a870cfbc1d03037a7d5acbb1d1f9d3 (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: antechnologic <antechnologic@pm.me>
# Contributor: Sheng Yu <magicfish1990@gmail.com>
# Contributor: Alex Talker <alextalker@yandex.ru>
pkgname="udptunnel"
pkgver=r19
pkgrel=3
pkgdesc="Tunnels TCP over UDP packets"
arch=('x86_64' 'i686')
url="https://code.google.com/archive/p/udptunnel"
license=('GPL-3.0-or-later')
depends=('glibc')
_pkgsrc="${pkgname}-${pkgver}"
source=("${_pkgsrc}.tar.gz::https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${pkgname}/${_pkgsrc}.tar.gz")
b2sums=('63e87d8f510b496ff37b610206d488e58e8c6fddb2ec30d89472bd4da18d83dc0296eb7bf31f66b51b2e51e5d40b3d51eaf3ac5ea6f9374d9917e57081eb670f')
prepare() {
cd "${srcdir}"
rm -rf "${_pkgsrc}"
mv -f "${pkgname}" "${_pkgsrc}"
cd "${_pkgsrc}"
sed -i 's/^CFLAGS=/CFLAGS+=/' Makefile
}
build() {
cd "${srcdir}/${_pkgsrc}"
make
}
package() {
cd "${srcdir}/${_pkgsrc}"
install -vDm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -vDm644 "README" "${pkgdir}/usr/share/doc/${pkgname}/README"
install -vDm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
|