ayaports/apk/wallabag/APKBUILD

51 lines
1.8 KiB
Text
Raw Normal View History

2018-10-03 03:19:44 +00:00
# Maintainer: Antoine Martin <antoine@ayakael.net>
# Based on PKGBUILD by the following:
# Philipp Schmitt (philipp<at>schmitt<dot>com
pkgname=wallabag
2019-06-07 18:59:49 +00:00
pkgver=2.3.8
pkgrel=0
2018-10-03 03:19:44 +00:00
pkgdesc='Self hostable application for saving web pages'
arch='noarch'
url='http://www.wallabag.org/'
license='MIT'
2018-10-03 04:53:44 +00:00
depends='php7 php7-gd php7-tidy pcre php7-tokenizer php7-bcmath composer'
2018-10-03 03:19:44 +00:00
options='!strip'
source="https://static.wallabag.org/releases/wallabag-release-${pkgver}.tar.gz"
builddir="${srcdir}/${pkgver}"
_USER=nginx
_GROUP=nginx
build() {
return 0
}
package() {
cd "${builddir}"
# Make directories
mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}" "${pkgdir}/var/lib/${pkgname}" "${pkgdir}/etc/${pkgname}"
# Copy operations
cp . -R "${pkgdir}/usr/share/webapps/${pkgname}"
mv "${pkgdir}/usr/share/webapps/${pkgname}/app/config/parameters.yml" "${pkgdir}/etc/${pkgname}/"
mv "${pkgdir}/usr/share/webapps/${pkgname}/var" "${pkgdir}/var/lib/${pkgname}/"
mv "${pkgdir}/usr/share/webapps/${pkgname}/data" "${pkgdir}/var/lib/${pkgname}/"
# Link operations
ln -s "/etc/${pkgname}/parameters.yml" "${pkgdir}/usr/share/webapps/${pkgname}/app/config/parameters.yml"
ln -s "/var/lib/${pkgname}/var" "${pkgdir}/usr/share/webapps/${pkgname}/"
ln -s "/var/lib/${pkgname}/data" "${pkgdir}/usr/share/webapps/${pkgname}/"
# Chown operartions
chown -R ${_USER}:${_GROUP} "${pkgdir}/etc/${pkgname}"
chown -R ${_USER}:${_GROUP} "${pkgdir}/var/lib/${pkgname}"
chown -R ${_USER}:${_GROUP} "${pkgdir}/usr/share/webapps/${pkgname}"
sed -i "${pkgdir}/var/lib/${pkgname}/var/bootstrap.php.cache" -e "s@__DIR__.'/../@'/usr/share/webapps/${pkgname}/@"
}
2019-06-07 18:59:49 +00:00
sha512sums="5a2154d0944fe2eb40c2f89cf4d151baa0fd3e4b626d5441e2cdb68b90f5a3cddd63916f2d27ac705c2f612769b8cbdcbb9c5d1e3546eb883c308edbe701297b wallabag-release-2.3.8.tar.gz"