blob: 242bb27e1ed66cd2b832dd5127dad0500a8e4a0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Jikstra <jikstra@disroot.org>
pkgname=rpgp-git
pkgdesc="Pure rust implementation of OpenPGP "
pkgver=0.2.1
pkgrel=1
_gittag="${pkgver}"
arch=('any')
url="https://github.com/deltachat/deltachat-desktop"
license=('APACHE' 'MIT')
depends=('gcc-libs')
makedepends=('rustup' 'git')
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"
}
|