From 79bbaa8539c4165ff9516cdae89c02362697f341 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 24 Jan 2021 01:47:01 +0100 Subject: initial commit --- PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d0afd22 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Miquel Lionel +# https://aur.archlinux.org/packages/honk/ + +pkgname=honk +pkgver=0.9.5 +pkgrel=1 +epoch=0 +pkgdesc="ActivityPub compatible server with web frontend." +arch=("x86_64") +url="https://humungus.tedunangst.com/r/honk" +license=("custom:ISC") +makedepends=("gcc-go" "sqlite") +depends=("gcc-go" "sqlite") +optdepends=("nginx: reverse proxy with tls support") +changelog="$pkgname.changelog" +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("$pkgname-$pkgver.tar.gz::https://humungus.tedunangst.com/r/honk/d/$pkgname-$pkgver.tgz") +sha512sums=("f8360c06ce320d5bb386b069a8a22398dd7cb972243a27b9c077373108c755c3c496743f9d043675b54b7a63cde0b647fcb94c37470d8be15b46db1cd4a6196d") +#backup=("usr/share/webapps/honk/honk.db" "usr/share/webapps/honk/blob.db" "usr/share/webapps/honk/backup.db" "usr/share/webapps/honk/views/*") +options=(!strip) +install="$pkgname.install" + +build() { + cd "$pkgname-$pkgver" + make all +} + +package() { + _PKG_HONKDIR="$pkgdir/usr/share/webapps/honk" + install -vDm755 "$pkgname-$pkgver/honk" "$_PKG_HONKDIR/honk" + install -vDm644 "$pkgname-$pkgver"/views/* -t "$_PKG_HONKDIR/views/" + install -vDm644 "$pkgname-$pkgver"/docs/* -t "$_PKG_HONKDIR/docs/" + install -vDm644 "$pkgname-$pkgver"/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -vDm644 ../honk.service -t "$pkgdir/etc/systemd/system" +} -- cgit v1.2.3-70-g09d2