blob: 61bddc555dd69900b7c8aeadd2e0e283de70d340 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=jackal
pkgver=0.64.0
pkgrel=1
pkgdesc='An XMPP/Jabber server'
arch=('x86_64' 'i686')
url='https://github.com/ortuman/jackal'
license=('GPL3')
depends=('glibc')
makedepends=('go>=1.18')
optdepends=('postgresql: PostgreSQL support'
'mariadb: MariaDB support')
conflicts=('jackal-git')
backup=('etc/jackal/jackal.yml', 'etc/jackal/config.yaml')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ortuman/jackal/archive/v${pkgver}.tar.gz"
jackal.service
jackal.sysusers
jackal.tmpfiles
config.yaml)
sha256sums=('1b6f83a4108228784b4b25586dd70e5f2c9f2fdee2ad54b1be9b65e934bc4d8d'
'0a9a9065957e5b0576e5443b29bf0cae81281194664376569a91c51f85e7d7ff'
'5fec4f4053ac15cd597bb32ba03c35d85f52438204fd801edf333403ec2c4bf3'
'20b7e5a5fee727e72fdbac54182b594a838340c0625036ca9d117e2a9d710045'
'a6b361f52bb1ffb7b872c0ab43086048680cbe462ea95e72d85771d2418e52fe')
install=jackal.install
build() {
cd jackal-${pkgver}
go build -tags netgo \
-trimpath \
-buildmode=pie \
-ldflags "-linkmode external" \
"github.com/ortuman/jackal/cmd/jackalctl"
go build -tags netgo \
-trimpath \
-buildmode=pie \
-ldflags "-linkmode external" \
"github.com/ortuman/jackal/cmd/jackal"
}
package() {
install -dm 775 "${pkgdir}/usr/share/doc/jackal/"
install -dm 775 "${pkgdir}/usr/share/jackal/"
install -D "${srcdir}/config.yaml" "${pkgdir}/etc/jackal/config.yaml"
install -Dm444 "${srcdir}/jackal-${pkgver}/README.md" "${pkgdir}/usr/share/doc/jackal/"
cp -r "${srcdir}/jackal-${pkgver}/sql/" "${pkgdir}/usr/share/jackal/"
install -Dm755 "${srcdir}/jackal-${pkgver}/jackalctl" "${pkgdir}/usr/bin/jackalctl"
install -Dm755 "${srcdir}/jackal-${pkgver}/jackal" "${pkgdir}/usr/bin/jackal"
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
install -Dm644 "${srcdir}/jackal.service" "${pkgdir}/usr/lib/systemd/system/jackal.service"
install -Dm644 "${srcdir}/jackal.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/jackal.conf"
}
# vim: ts=2 sw=2 et:
|