diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d30c3c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.deb +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f0e04cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Emiliano Vavassori + +pkgname=ferrumgate-bin +pkgver=1.9.0 +pkgrel=1 +pkgdesc="Ferrumgate client for Linux - Binaries from .deb" +arch=('x86_64') +license=('Apache-2.0') +url="https://ferrumgate.com/" +install= +options=('!strip') + +ARCH='amd64' +md5sums=('0000e6bbc3c38b68f47333921ff9dbd2') +source=('https://github.com/ferrumgate/secure.client/releases/download/v1.9.0/ferrumgate_1.9.0_linux_amd64.deb') + +build() { + pkgsrc=$srcdir/$pkgbase-$pkgver + mkdir $pkgsrc + ar -xv ferrumgate_${pkgver}_linux_amd64.deb || return 1 + tar -xvf data.tar.[xg]z -C $pkgsrc || return 1 +} + +package() { + cd $srcdir/$pkgbase-$pkgver + install -d $pkgdir/usr + cp -dr --no-preserve=ownership $srcdir/$pkgbase-$pkgver/usr $pkgdir + install -d $pkgdir/opt + cp -dr --no-preserve=ownership $srcdir/$pkgbase-$pkgver/opt $pkgdir +}