2014-02-17 13:40:23 +01:00
|
|
|
# Maintainer: Philipp Schmitt (philipp<at>schmitt<dot>co)
|
|
|
|
|
|
|
|
pkgname=wallabag
|
2016-05-06 07:54:15 +02:00
|
|
|
pkgver=2.0.3
|
2016-05-07 00:53:32 +02:00
|
|
|
pkgrel=3
|
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')
|
2016-05-07 00:53:32 +02:00
|
|
|
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'
|
|
|
|
)
|
2014-02-17 13:40:23 +01:00
|
|
|
install="$pkgname.install"
|
2014-02-19 16:33:35 +01:00
|
|
|
options=(!strip)
|
2016-05-07 00:53:32 +02:00
|
|
|
source=("${pkgname}.tar.xz::http://wllbg.org/latest-v2-package")
|
|
|
|
sha256sums=('6c69e2fd1dbebbd4311e4d385928dcad60cb80b16247d1e18181eb66a91e8bd7')
|
|
|
|
backup=("etc/webapps/${pkgname}/parameters.yml"
|
|
|
|
"usr/share/webapps/${pkgname}/parameters.yml")
|
2014-02-17 13:40:23 +01:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${pkgdir}"
|
|
|
|
mkdir -p usr/share/webapps
|
2016-05-07 00:53:32 +02:00
|
|
|
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}"/
|
|
|
|
|
2015-02-19 15:08:00 +01:00
|
|
|
chown -R http:http "${pkgdir}/usr/share/webapps/wallabag"
|
2014-02-17 13:40:23 +01:00
|
|
|
}
|