Import Baikal from AUR
This commit is contained in:
parent
ffc8841528
commit
12d74b3e98
|
@ -2,8 +2,8 @@
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
||||||
pkgname=baikal
|
pkgname=baikal
|
||||||
pkgver=0.4.6
|
pkgver=0.5.3
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="Lightweight CalDAV+CardDAV server"
|
pkgdesc="Lightweight CalDAV+CardDAV server"
|
||||||
url="http://sabre.io/baikal/"
|
url="http://sabre.io/baikal/"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -11,26 +11,16 @@ license=('GPL')
|
||||||
depends=('php')
|
depends=('php')
|
||||||
optdepends=('sqlite: Database' 'mariadb: Alternate database' 'php-sqlite: To use the sqlite backend')
|
optdepends=('sqlite: Database' 'mariadb: Alternate database' 'php-sqlite: To use the sqlite backend')
|
||||||
source=("https://github.com/fruux/Baikal/releases/download/$pkgver/baikal-$pkgver.zip"
|
source=("https://github.com/fruux/Baikal/releases/download/$pkgver/baikal-$pkgver.zip"
|
||||||
'baikal.install'
|
'baikal.install')
|
||||||
'https://patch-diff.githubusercontent.com/raw/fruux/Baikal/pull/686.patch'
|
sha1sums=('01a3fd2c15a4adf3eb579e9d2aea414649a4db87'
|
||||||
'foreach.patch::https://github.com/sabre-io/Baikal/commit/4a33ba6ca2cc19eeab484f1affb031e9d5273692.patch')
|
'deb948e61c3cd8d6ad560321f78c0b288f7a6210')
|
||||||
sha1sums=('bc2850281223da9cc7471a157de754f8feb03783'
|
|
||||||
'60c547fdd6a3926213e8becf8f08db9c3a408e78'
|
|
||||||
'102cd0df5eaddc6860d5244a16b4594970e02740'
|
|
||||||
'c577c778ab8e5ddd7767e5953161ab44b2cafe1c')
|
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
install=baikal.install
|
install=baikal.install
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${srcdir}/baikal"
|
|
||||||
patch -p1 -i "$srcdir/686.patch"
|
|
||||||
patch -p1 -i "$srcdir/foreach.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/baikal"
|
cd "${srcdir}/baikal"
|
||||||
install -dm 755 "$pkgdir"/usr/share/{webapps,doc}"/$pkgname"
|
install -dm 755 "$pkgdir"/usr/share/{webapps,doc}"/$pkgname"
|
||||||
install -dm 700 "$pkgdir/var/lib/$pkgname"
|
install -dm 700 -o http -g http "$pkgdir/var/lib/$pkgname"
|
||||||
cp -R Core html vendor "$pkgdir/usr/share/webapps/$pkgname"
|
cp -R Core html vendor "$pkgdir/usr/share/webapps/$pkgname"
|
||||||
install -Dm644 CHANGELOG.md README.md "$pkgdir/usr/share/doc/$pkgname"
|
install -Dm644 CHANGELOG.md README.md "$pkgdir/usr/share/doc/$pkgname"
|
||||||
ln -s "/var/lib/$pkgname" "$pkgdir/usr/share/webapps/$pkgname/Specific"
|
ln -s "/var/lib/$pkgname" "$pkgdir/usr/share/webapps/$pkgname/Specific"
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
|
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
if [[ ! -f /var/lib/baikal/db/db.sqlite ]]; then
|
|
||||||
# Create initial database if it doesn't exist.
|
|
||||||
# Note we can't do this while packaging because we don't want to override
|
|
||||||
# an older database.
|
|
||||||
mkdir /var/lib/baikal/db
|
|
||||||
cp /usr/share/webapps/baikal/Core/Resources/Db/SQLite/db.sqlite \
|
|
||||||
/var/lib/baikal/db
|
|
||||||
chown -R http:http /var/lib/baikal
|
|
||||||
fi
|
|
||||||
echo "Please add /var/lib/baikal to open_basedir in your /etc/php.ini."
|
echo "Please add /var/lib/baikal to open_basedir in your /etc/php.ini."
|
||||||
echo
|
echo
|
||||||
echo "You also need to set up your webserver for baikal, there are example"
|
echo "You also need to set up your webserver for baikal, there are example"
|
||||||
|
|
Loading…
Reference in New Issue