2016-11-05 01:29:34 -04:00
|
|
|
# Maintainer: Philipp Schmitt (philipp<at>schmitt<dot>co)
|
|
|
|
|
|
|
|
pkgname=wallabag
|
2016-11-05 02:18:08 -04:00
|
|
|
pkgver=2.1.3
|
2016-11-05 01:29:34 -04:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Self hostable application for saving web pages'
|
|
|
|
arch=('any')
|
|
|
|
url='http://www.wallabag.org/'
|
|
|
|
license=('MIT')
|
|
|
|
depends=(
|
|
|
|
'php>=5.3.3'
|
|
|
|
'php-gd'
|
|
|
|
'php-tidy'
|
|
|
|
'pcre'
|
|
|
|
)
|
|
|
|
optdepends=(
|
|
|
|
'php-mysql: For MySQL storage'
|
|
|
|
'php-pgsql: For postgres storage'
|
|
|
|
'php-sqlite: For sqlite storage'
|
|
|
|
'rabbitmq: For async import'
|
|
|
|
'redis: For async import'
|
|
|
|
)
|
|
|
|
install="$pkgname.install"
|
|
|
|
options=(!strip)
|
|
|
|
source=("${pkgname}.tar.xz::http://wllbg.org/latest-v2-package")
|
2016-11-05 02:18:08 -04:00
|
|
|
sha256sums=('f72d6e8dfd7975c4f407e5d531c52b865b3e2a72d755798ac908dcfc22d6815e')
|
2016-11-05 01:29:34 -04:00
|
|
|
backup=("etc/webapps/${pkgname}/parameters.yml"
|
|
|
|
"usr/share/webapps/${pkgname}/parameters.yml"
|
|
|
|
"var/lib/${pkgname}/data/db/wallabag.sqlite"
|
|
|
|
"usr/share/webapps/${pkgname}/data/db/wallabag.sqlite")
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgdir}"
|
|
|
|
mkdir -p usr/share/webapps
|
|
|
|
mv "${srcdir}/release-${pkgver}" usr/share/webapps/${pkgname}
|
|
|
|
|
|
|
|
WALLABAG_CONF_DIR="${pkgdir}/usr/share/webapps/${pkgname}/app/config"
|
|
|
|
|
|
|
|
install -d "${pkgdir}/etc/webapps/${pkgname}/"
|
|
|
|
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}"/
|
|
|
|
|
|
|
|
_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"
|
|
|
|
|
|
|
|
chown -R http:http "${pkgdir}/usr/share/webapps/${pkgname}"
|
|
|
|
}
|