Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PKGBUILD sniproxy-git
_pkgname=sniproxy
pkgname=sniproxy-git
pkgver=0.6.0.10.g822bb80
pkgrel=1
pkgdesc="TLS SNI proxy"
arch=(i686 x86_64)
url="https://github.com/dlundquist/sniproxy"
license=('BSD')
depends=(libev pcre udns)
backup=('etc/sniproxy.conf')
source=("$_pkgname::git+https://github.com/dlundquist/sniproxy.git"
sniproxy.service
sniproxy.conf
sniproxy.tmpfiles.d)
sha256sums=('SKIP'
'652e7f9e605fd24bb0c45c2227b8ed32d7c4b219066da0b0dc6fc0b87500d908'
'b199717c01176c7d38e6508b049d2aa12a440a2d1a28039b03fd0b060b00058c'
'a0ded4090c83f50457e5521773d87a33821781055eb5dee503cf69388ff5b207')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --tags | sed 's|-|.|g'
}
build() {
cd "$srcdir/$_pkgname"
./autogen.sh
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir/" install
install -Dm0644 $srcdir/sniproxy.conf $pkgdir/etc/sniproxy.conf
install -Dm0644 $srcdir/sniproxy.tmpfiles.d $pkgdir/usr/lib/tmpfiles.d/sniproxy.conf
install -Dm0644 sniproxy.conf $pkgdir/usr/share/doc/$_pkgname/sniproxy.conf
install -Dm0644 COPYING $pkgdir/usr/share/licenses/$_pkgname/COPYING
install -Dm0644 $srcdir/sniproxy.service $pkgdir/usr/lib/systemd/system/sniproxy.service
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment