-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
81 lines (64 loc) · 2.25 KB
/
PKGBUILD
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer:
_rocksdb_version=8.1.1 # Should match the version of rocksdb shipped in the offical arch repositories
pkgname=('matrix-construct')
pkgver=0.9.578
pkgrel=1
pkgdesc="Matrix homeserver with high performance and minimal dependencies."
arch=('x86_64')
url="https://github.com/matrix-construct/construct"
license=('BSD')
depends=('boost-libs' 'file' 'freetype2' 'graphicsmagick' 'icu' 'jemalloc' 'libatomic_ops' 'libpng' 'libsodium' 'lz4' 'openssl' 'rocksdb' 'xz' 'zstd')
makedepends=('autoconf2.13' 'autoconf-archive' 'automake' 'bash' 'binutils' 'boost' 'curl' 'git' 'libtool' 'make' 'vim')
optdepends=("logrotate: Rotates Construct's logs automatically")
backup=('etc/logrotate.d/matrix-construct')
source=("$pkgname-$pkgver::git+https://github.com/matrix-construct/construct.git#tag=$pkgver"
"rocksdb-$_rocksdb_version.tar.gz::https://github.com/facebook/rocksdb/archive/refs/tags/v$_rocksdb_version.tar.gz"
"matrix-construct.logrotate"
"matrix-construct.sysusers"
"matrix-construct.tmpfiles")
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "$pkgname-$pkgver"
rm -rf deps/rocksdb
ln -sf "${srcdir}/rocksdb-$_rocksdb_version/." deps/rocksdb
./autogen.sh
}
build() {
cd "$pkgname-$pkgver"
./configure \
--prefix=/ --disable-opencl \
bindir=/usr/bin \
sysconfdir=/etc \
includedir=/usr/include \
libdir=/usr/lib \
datarootdir=/usr/share \
datadir=/usr/share/construct \
localstatedir=/var/lib/construct \
--with-dbdir=/var/lib/construct/db \
--with-logdir=/var/log/construct \
runstatedir=/run \
--with-moduledir=/usr/lib/construct/modules \
--with-webappdir=/usr/share/webapps
make
}
#check() {
#
#}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
# Deleting the webapp
rm -rf "${pkgdir}/usr/share/construct"
install -vDm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -vDm644 "${srcdir}/${pkgname}.logrotate" "${pkgdir}/etc/logrotate.d/${pkgname}"
install -vDm644 "${srcdir}/${pkgname}@.service" -t "${pkgdir}/usr/lib/systemd/system"
install -vDm644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}