diff options
author | piernov | 2020-11-01 19:43:08 +0100 |
---|---|---|
committer | piernov | 2020-11-01 19:43:08 +0100 |
commit | b3818565b65dd06f340295d34b4fab7a20aa573c (patch) | |
tree | 077f37d363ead5508a6adb1814b95e01ea34b4bc | |
download | aur-ssf-git.tar.gz |
Initial import: ssf-git
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..032665af749e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ssf-git + pkgdesc = Network toolkit providing ways to forward data from sockets through a TLS link + pkgver = r386.2caaaab + pkgrel = 1 + url = https://securesocketfunneling.github.io/ssf/ + arch = x86_64 + license = MIT + makedepends = boost-65-compat + depends = openssl-1.0 + depends = boost-65-compat-libs + depends = krb5 + source = git+https://github.com/securesocketfunneling/ssf.git + sha512sums = SKIP + +pkgname = ssf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0a242561e4f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: piernov <piernov@piernov.org> + +pkgname=ssf-git +_pkgname=ssf +pkgver=r386.2caaaab +pkgrel=1 +pkgdesc="Network toolkit providing ways to forward data from sockets through a TLS link" +arch=('x86_64') +url="https://securesocketfunneling.github.io/ssf/" +license=('MIT') +depends=('openssl-1.0' 'boost-65-compat-libs' 'krb5') +makedepends=('boost-65-compat') +source=("git+https://github.com/securesocketfunneling/ssf.git") +sha512sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$_pkgname" + git submodule update --init +} + +build() { + cd "$_pkgname" + + export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig + export _OPENSSL_INCLUDEDIR=/usr/include/openssl-1.0/ + export _OPENSSL_LIBDIR=/usr/lib/openssl-1.0/ + + mkdir -p build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "$_pkgname/build" + make install DESTDIR="$pkgdir" + install -dm755 "$pkgdir"/usr/share/ssf + mv "$pkgdir"/usr/bin/certs "$pkgdir"/usr/share/ssf/ +} |