2020-12-11 09:53:50 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: Philipp Schmitt (philipp<at>schmitt<dot>co)
|
2014-02-17 13:40:23 +01:00
|
|
|
|
|
|
|
pkgname=wallabag
|
2021-01-05 15:55:08 +01:00
|
|
|
pkgver=2.4.1
|
2021-01-29 09:54:15 +01:00
|
|
|
pkgrel=2
|
2014-02-17 13:40:23 +01:00
|
|
|
pkgdesc='Self hostable application for saving web pages'
|
2014-02-19 16:33:35 +01:00
|
|
|
arch=('any')
|
2014-02-17 13:40:23 +01:00
|
|
|
url='http://www.wallabag.org/'
|
2014-12-17 19:46:24 +01:00
|
|
|
license=('MIT')
|
2020-12-11 09:53:50 +01:00
|
|
|
makedepends=('systemd')
|
2016-05-07 00:53:32 +02:00
|
|
|
depends=(
|
2021-01-29 09:54:15 +01:00
|
|
|
'php7>=7.2'
|
|
|
|
'php7-gd'
|
|
|
|
'php7-tidy'
|
2016-05-07 00:53:32 +02:00
|
|
|
'pcre'
|
|
|
|
)
|
|
|
|
optdepends=(
|
2021-01-29 09:54:15 +01:00
|
|
|
'php7-pgsql: For postgres storage'
|
|
|
|
'php7-sqlite: For sqlite storage'
|
2016-10-19 16:35:09 +02:00
|
|
|
'rabbitmq: For async import'
|
|
|
|
'redis: For async import'
|
2016-05-07 00:53:32 +02:00
|
|
|
)
|
2014-02-17 13:40:23 +01:00
|
|
|
install="$pkgname.install"
|
2014-02-19 16:33:35 +01:00
|
|
|
options=(!strip)
|
2017-01-24 17:07:03 +01:00
|
|
|
source=("https://static.wallabag.org/releases/wallabag-release-${pkgver}.tar.gz")
|
2021-01-05 15:55:08 +01:00
|
|
|
sha256sums=('722620897e0e2f2fc769ac819e5c3527e9270d477576d194b35a4e63542c0eb7')
|
2016-05-07 00:53:32 +02:00
|
|
|
backup=("etc/webapps/${pkgname}/parameters.yml"
|
2016-10-19 15:35:20 +02:00
|
|
|
"usr/share/webapps/${pkgname}/parameters.yml"
|
|
|
|
"var/lib/${pkgname}/data/db/wallabag.sqlite"
|
|
|
|
"usr/share/webapps/${pkgname}/data/db/wallabag.sqlite")
|
2014-02-17 13:40:23 +01:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgdir}"
|
|
|
|
mkdir -p usr/share/webapps
|
2018-08-29 09:21:05 +02:00
|
|
|
mv "${srcdir}/${pkgver}" "usr/share/webapps/${pkgname}"
|
2016-05-07 00:53:32 +02:00
|
|
|
|
|
|
|
WALLABAG_CONF_DIR="${pkgdir}/usr/share/webapps/${pkgname}/app/config"
|
|
|
|
|
|
|
|
install -d "${pkgdir}/etc/webapps/${pkgname}/"
|
2018-08-29 09:21:05 +02:00
|
|
|
mv "${WALLABAG_CONF_DIR}"/parameters.yml "${pkgdir}/etc/webapps/${pkgname}/"
|
|
|
|
chown -R http:http "${pkgdir}/etc/webapps/${pkgname}"
|
|
|
|
ln -s "/etc/webapps/${pkgname}/parameters.yml" "${WALLABAG_CONF_DIR}"/
|
2016-05-07 00:53:32 +02:00
|
|
|
|
2016-10-19 15:35:20 +02:00
|
|
|
_VAR_DIR="${pkgdir}/var/lib/${pkgname}/"
|
|
|
|
install -d "$_VAR_DIR"
|
|
|
|
mv "${pkgdir}/usr/share/webapps/${pkgname}/"{data,var} "$_VAR_DIR"
|
|
|
|
ln -s "/var/lib/${pkgname}/"{data,var} "${pkgdir}/usr/share/webapps/${pkgname}/"
|
|
|
|
chown -R http:http "$_VAR_DIR"
|
|
|
|
|
2017-01-30 13:47:54 +01:00
|
|
|
sed -i "${_VAR_DIR}/var/bootstrap.php.cache" -e "s@__DIR__.'/../@'/usr/share/webapps/${pkgname}/@"
|
|
|
|
|
2016-10-19 15:35:20 +02:00
|
|
|
chown -R http:http "${pkgdir}/usr/share/webapps/${pkgname}"
|
2014-02-17 13:40:23 +01:00
|
|
|
}
|