blob: be51f1cb0e97053984a00260aebd0f3d717393dc (
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
35
36
37
38
39
40
|
# Maintainer: Will Foran <willforan+aur@gmail.com>
pkgname=strfry-git
pkgver=r236.c0dec7c
pkgrel=1
pkgdesc="a nostr relay w/filesystem LMDB and merkle-tree reconcilliation"
arch=(x86_64)
url="https://github.com/hoytech/strfry"
license=('GPL')
groups=()
depends=()
makedepends=('git' 'flatbuffers' 'perl-regexp-grammars' 'perl-template-toolkit' 'perl-yaml' 'libsecp256k1' `# -git` )
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('strfry::git+https://github.com/hoytech/strfry')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare(){
cd "$srcdir/${pkgname%-git}"
git submodule update --init
}
build() {
cd "$srcdir/${pkgname%-git}"
make setup-golpe
make
}
package() {
install -D -m 0755 "$srcdir/${pkgname%-git}/strfry" "$pkgdir/usr/bin/strfry"
install -D "$srcdir/${pkgname%-git}/strfry.conf" "$pkgdir/etc/strfry.conf.example"
}
|