Created
April 11, 2021 13:08
-
-
Save mathsen/9ef09a5d13d5bc48548014256380371c to your computer and use it in GitHub Desktop.
PKGBUILD sniproxy-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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