summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Michaelis2018-07-19 19:19:32 +0200
committerKai Michaelis2018-07-19 19:19:32 +0200
commitdfe74febda6705397a766a6aeeb2e5923582393c (patch)
tree10bac8e615f3fc2679ffc428a5e4ddd7447bef14
parent16592e9470a773022a3bbd03c56b522bf0e43d2b (diff)
downloadaur-dfe74febda6705397a766a6aeeb2e5923582393c.tar.gz
use sequoias makefile
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD38
2 files changed, 24 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 543f0c44e54..c03a5df3a26 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,12 @@
pkgbase = sequoia-git
- pkgdesc = A modular OpenPGP library
- pkgver = 675
+ pkgver = r675.023f52c
pkgrel = 1
- url = https://sequoia-pgp.org/
arch = x86_64
arch = i686
- groups = devel
license = GPL3
makedepends = rust
makedepends = cargo
- makedepends = git>=1
+ makedepends = git
depends = nettle>=3
depends = sqlite>=3
depends = openssl>=1.1
diff --git a/PKGBUILD b/PKGBUILD
index d12a135ee97..41466ce169e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
-# Maintainer: Kai Michaelis <seu@das-labor.org>
+# Maintainer: Kai Michaelis <seu@panopticon.re>
pkgname=sequoia-git
-pkgver=675
+pkgver=r675.023f52c
pkgrel=1
pkgdesc="A modular OpenPGP library"
arch=('x86_64' 'i686')
url="https://sequoia-pgp.org/"
license=('GPL3')
-groups=('devel')
+groups=()
depends=(
'nettle>=3'
'sqlite>=3'
@@ -14,27 +14,33 @@ depends=(
makedepends=(
'rust'
'cargo'
- 'git>=1')
-provides=('sequoia')
-conflicts=('sequoia')
+ 'git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
source=($pkgname::git+https://gitlab.com/sequoia-pgp/sequoia.git)
+noextract=()
md5sums=('SKIP')
pkgver() {
- cd $pkgname
- echo "$(git rev-list --count HEAD)"
+ cd "$srcdir/${pkgname%-VCS}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd $pkgname
- cargo build --all --release
+ cd "$srcdir/${pkgname%-VCS}"
+ make PREFIX="/usr" all
+}
+
+check() {
+ cd "$srcdir/${pkgname%-VCS}"
+ cargo test --all
}
package() {
- cd $pkgname
- install -d -m755 "$pkgdir/usr/bin"
- install -D -s -m555 "$srcdir/$pkgname/target/release/sq" "$pkgdir/usr/bin/sq"
- install -D -s -m555 "$srcdir/$pkgname/target/release/sqv" "$pkgdir/usr/bin/sqv"
- install -d -m755 "$pkgdir/usr/lib/sequoia"
- install -D -s -m555 "$srcdir/$pkgname/target/release/sequoia-public-key-store" "$pkgdir/usr/lib/sequoia/sequoia-public-key-store"
+ cd "$srcdir/${pkgname%-VCS}"
+ make DESTDIR="$pkgdir" PREFIX="/usr" install
}