diff options
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..4e2bb591ba95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Jikstra <jikstra@disroot.org> +pkgname=rpgp-git +pkgdesc="Pure rust implementation of OpenPGP " +pkgver=0.2.0 +pkgrel=1 +_gittag="v${pkgver}-alpha" +arch=('any') +url="https://github.com/deltachat/deltachat-desktop" +license=('APACHE' 'MIT') +depends=('gcc-libs') +makedepends=('rustup') + +prepare() { + cd "$srcdir" + git clone --branch $_gittag --depth 1 https://github.com/rpgp/rpgp.git $pkgname +} + +build() { + cd "$pkgname/pgp-ffi" + echo "Active rust toolchain: $(rustup show active-toolchain)" + make +} + +package() { + cd "$srcdir/${pkgname}" + + install -d "${pkgdir}/usr/lib/" + install -m 644 "target/release/libpgp_ffi.so" "${pkgdir}/usr/lib/librpgp.so" + install -d "${pkgdir}/usr/include/" + install -m 644 "pgp-ffi/librpgp.h" "${pkgdir}/usr/include/" + install -d "${pkgdir}/usr/lib/pkgconfig" + install -m 644 "target/release/pkgconfig/rpgp.pc" "${pkgdir}/usr/lib/pkgconfig" +} + |