48 lines
1.7 KiB
Text
48 lines
1.7 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=wallabag
|
|
pkgver=2.6.1
|
|
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 -pdo -ldap -sodium"
|
|
depends="$_php ${_php_mods//-/$_php-} pcre composer"
|
|
options='!strip'
|
|
source="
|
|
https://github.com/wallabag/wallabag/releases/download/$pkgver/wallabag-$pkgver.tar.gz
|
|
0001-Add-LDAP-support.patch
|
|
"
|
|
options="!check" # No testsuote
|
|
pkgusers="wallabag"
|
|
pkggroups="www-data"
|
|
|
|
package() {
|
|
local datadir="/var/lib/$pkgname"
|
|
local wwwdir="/usr/share/webapps/$pkgname"
|
|
local confdir="/etc/$pkgname"
|
|
|
|
# Make directories
|
|
install -dm 755 "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir
|
|
|
|
# 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/
|
|
|
|
# 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/"
|
|
|
|
sed -i "$pkgdir"/$datadir/var/bootstrap.php.cache -e "s@__DIR__.'/../@'/usr/share/webapps/$pkgname/@"
|
|
}
|
|
sha512sums="
|
|
e1808da08dced320c36817b03e0f93f863151417fe06bd5b24f2d91e09a25009501437f68ec9f7505577019ce2d2c505f8f3ac3d6c8fbe245ae350620adb47af wallabag-2.6.1.tar.gz
|
|
daf808d1314160e7786cf42f7ec93241a9f72a2151f84e6c73511efab5a7a605356ea35e88c15bef9eead4b934fb9ed31cb00cbdec45adf28218738884b053d4 0001-Add-LDAP-support.patch
|
|
"
|