2023-01-10 19:15:42 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
2021-06-04 15:24:22 +00:00
|
|
|
|
|
|
|
pkgname=wallabag
|
2023-04-01 16:01:49 +00:00
|
|
|
pkgver=2.5.4
|
2023-01-10 19:15:42 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Self hostable application for saving web pages"
|
|
|
|
arch="noarch"
|
|
|
|
url="http://www.wallabag.org/"
|
|
|
|
license="MIT"
|
|
|
|
_php=php81
|
|
|
|
_php_mods="-gd -tidy -tokenizer -bcmath -dom -curl -session -ctype -simplexml
|
|
|
|
-xml -sockets -xmlreader -intl"
|
|
|
|
depends="$_php ${_php_mods//-/$_php-} pcre composer"
|
2021-06-04 15:24:22 +00:00
|
|
|
options='!strip'
|
2023-01-10 19:15:42 +00:00
|
|
|
source="https://static.wallabag.org/releases/wallabag-release-$pkgver.tar.gz"
|
|
|
|
options="!check" # No testsuote
|
|
|
|
pkgusers="wallabag"
|
|
|
|
pkggroups="www-data"
|
2021-06-04 15:24:22 +00:00
|
|
|
|
|
|
|
package() {
|
2023-01-10 19:15:42 +00:00
|
|
|
local datadir="/var/lib/$pkgname"
|
|
|
|
local wwwdir="/usr/share/webapps/$pkgname"
|
|
|
|
local confdir="/etc/$pkgname"
|
2021-06-04 15:24:22 +00:00
|
|
|
|
2023-01-10 19:15:42 +00:00
|
|
|
# Make directories
|
|
|
|
install -dm 755 "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir
|
2021-06-04 15:24:22 +00:00
|
|
|
|
2023-01-10 19:15:42 +00:00
|
|
|
# Copy operations
|
|
|
|
cp $builddir/* -R "$pkgdir"/usr/share/webapps/$pkgname/.
|
|
|
|
mv "$pkgdir"/$wwwdir/app/config/parameters.yml "$pkgdir"/$confdir/
|
|
|
|
mv "$pkgdir"/$wwwdir/var "$pkgdir"/$datadir/
|
|
|
|
mv "$pkgdir"/$wwwdir/data "$pkgdir"/$datadir/
|
2021-06-04 15:24:22 +00:00
|
|
|
|
2023-01-10 19:15:42 +00:00
|
|
|
# Link operations
|
|
|
|
ln -s "/etc/$pkgname/parameters.yml" "$pkgdir/$wwwdir/app/config/parameters.yml"
|
|
|
|
ln -s "/var/lib/$pkgname/var" "$pkgdir/$wwwdir/"
|
|
|
|
ln -s "/var/lib/$pkgname/data" "$pkgdir/$wwwdir/"
|
2021-06-04 15:24:22 +00:00
|
|
|
|
2023-01-10 19:15:42 +00:00
|
|
|
sed -i "$pkgdir"/$datadir/var/bootstrap.php.cache -e "s@__DIR__.'/../@'/usr/share/webapps/$pkgname/@"
|
2021-06-04 15:24:22 +00:00
|
|
|
}
|
2023-01-10 19:15:42 +00:00
|
|
|
sha512sums="
|
2023-04-01 16:01:49 +00:00
|
|
|
eacf91b2cafb2c517b20686d6c66b2f97b8a9e4c296036319c885c9b0344b85b1c1c861dbbd2ac54f021065480bda78873e8da04dbd4a576db0c3527d47571f3 wallabag-release-2.5.4.tar.gz
|
2023-01-10 19:15:42 +00:00
|
|
|
"
|