blob: 85a810b511ceb1be4fcea43ce1df44f1ae651c03 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Polarian <polarian@polarian.dev>
# Former-Maintainer: Maxime "pep" Buquet <archlinux@bouah.net>
# Contributor: Guillaume Friloux <guillaume@friloux.me>
_pkgbase='movim'
_tagname=v0.17.1
pkgname=movim
pkgver=v0.17.1.92ddd9e71
pkgrel=1
pkgdesc="Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol."
arch=('any')
url='https://movim.eu'
license=('AGPL3')
provides=('movim')
depends=('php-gd' 'php-imagick')
optdepends=('postgresql: to use the postgresql database backend'
'php-pgsql: php bindings for postgresql'
'php-sqlite: php bindings for sqlite'
'mariadb: to use the mysql database backend'
'sqlite3: to use the sqlite database backend'
'nginx: reverse proxy'
'apache: reverse proxy'
'php-fpm: PHP FactCGI process manager')
makedepends=('git' 'composer')
source=("$_pkgbase::git+https://github.com/movim/movim#tag=${_tagname}"
movim.env
movim.service
sysuser.conf
tmpfiles.conf)
install=movim.install
backup=("etc/webapps/$_pkgbase/db.inc.php"
"etc/default/movim")
pkgver() {
cd $srcdir/$_pkgbase
echo "${_tagname}.$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/$_pkgbase
XDG_CACHE_HOME="$srcdir/cache" composer install \
--no-interaction --no-dev --no-suggest
}
package() {
cd "$srcdir/$_pkgbase"
# Systemd files
install -m755 -d "$pkgdir/etc/default"
install -Dm640 "$srcdir/movim.env" "$pkgdir/etc/default/$_pkgbase"
install -Dm644 "$srcdir/movim.service" "$pkgdir/usr/lib/systemd/system/movim.service"
install -Dm644 "$srcdir/sysuser.conf" "$pkgdir/usr/lib/sysusers.d/movim.conf"
install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/movim.conf"
install -m755 -d "$pkgdir/usr/share/webapps/$_pkgbase"
cp -r app database lib locales public src vendor \
"$pkgdir/usr/share/webapps/$_pkgbase"
install -Dm644 CHANGELOG.md doap.xml INSTALL.md linker.php phinx.php \
README.md VERSION "$pkgdir/usr/share/webapps/$_pkgbase"
install -Dm755 daemon.php "$pkgdir/usr/share/webapps/$_pkgbase"
# Configuration file
install -m750 -d "$pkgdir/etc/webapps/$_pkgbase"
install -Dm640 config/db.example.inc.php "$pkgdir/etc/webapps/$_pkgbase/db.inc.php"
}
sha256sums=('SKIP'
'5dfff91dd4a54f3d3713530e204370a96d37898b670a61123d8cad42f92da306'
'813d580300ee5bb7f1f9603db2404f5af67fd02f49017708d4adb919d4422045'
'c8b569f1eafb97d8d03bbaabb9b4d6ed3415f922a05a52bd865942676368f4c5'
'd7847c2b5d9897122168c66493bc72200432c2b15317e38afbfb06a8500257a2')
|