summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3aa6c993987be8119dd9b906ed059c285d545f87 (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
41
# Guoyi
pkgname=plume-postgres
_pkgname=plume
pkgver=0.7.2
pkgrel=1
pkgdesc='Federated blogging application'
arch=(x86_64)
url='https://joinplu.me/'
license=(AGPL3)
provides=('plume')
conflicts=('plume-git' 'plume' 'plume-bin' 'plume-sqlite')
depends=('gettext' 'openssl' 'pkgconf' 'postgresql')
source=("$pkgname-$pkgver::https://github.com/Plume-org/Plume/releases/download/${pkgver}/plume-postgres.tar.gz"
	".env.sample"
	"plume.service"
	"plume.sysusers")
md5sums=('571a18ad2fabdb5a130dbdf446cb334d'
         '939c960f67f2b859b48f96223bd6b74e'
         '545792acab035885a7cd479f43cde695'
         'ebfcfb05844a25ff281317af9b64f8bb')
install="$_pkgname.install"
package() {
	cd $srcdir/bin
	chmod +x *
	
	install -dm755 $pkgdir/usr/bin
	install -dm755 "$pkgdir"/usr/share/webapps/plume/static
	
	install -Dm 755 plm "$pkgdir"/usr/share/webapps/plume/plm
	install -Dm 755 plume "$pkgdir"/usr/share/webapps/plume/plume
	mv "$srcdir"/static/* "$pkgdir"/usr/share/webapps/plume/static
	
	install $srcdir/.env.sample "$pkgdir"/usr/share/webapps/plume/.env.sample

	ln -s /usr/share/webapps/plume/plume $pkgdir/usr/bin/plume
	ln -s /usr/share/webapps/plume/plm $pkgdir/usr/bin/plm

	install -Dm644 "$srcdir/plume.service" "$pkgdir/usr/lib/systemd/system/plume.service"
	install -Dm644 $srcdir/${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf

}