temp/libical: fix db.h: No such file or directory
Fix kcalcore build error. The same fix has been submitted to Alpine. In file included from /home/pmos/build/src/kcalcore-18.12.3/src/icalformat.cpp:45: /usr/include/libical/icalss.h:492:10: fatal error: db.h: No such file or directory #include <db.h> ^~~~~~ Related: * https://gitlab.com/postmarketOS/pmaports/issues/229 * https://github.com/alpinelinux/aports/pull/6986
This commit is contained in:
parent
40c126b925
commit
467338098e
2 changed files with 61 additions and 0 deletions
50
temp/libical/APKBUILD
Normal file
50
temp/libical/APKBUILD
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# Forked from Alpine until this fix is merged:
|
||||||
|
# https://github.com/alpinelinux/aports/pull/6986
|
||||||
|
pkgname=libical
|
||||||
|
pkgver=3.0.4
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Reference implementation of the iCalendar format"
|
||||||
|
url="https://libical.github.io/libical/"
|
||||||
|
arch="all"
|
||||||
|
license="LGPL MPL"
|
||||||
|
depends=""
|
||||||
|
# tzdata is needed for tests
|
||||||
|
makedepends="db-dev perl cmake glib-dev icu-dev libxml2-dev tzdata"
|
||||||
|
subpackages="$pkgname-dev"
|
||||||
|
source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver/build"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
mkdir "$builddir"
|
||||||
|
default_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_RELEASE_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
|
-DSHARED_ONLY=true
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make test ARGS="-V"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
# libical-dev needs db.h from db-dev, so depend on it
|
||||||
|
# /usr/include/libical/icalss.h:492:10: fatal error: db.h: No such file or directory
|
||||||
|
dev() {
|
||||||
|
default_dev
|
||||||
|
depends="$depends db-dev"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
sha512sums="491a1dd0c33bb823a79165eb6e4f86ef048a44642adfe44f8e69c83598b458ddf8e4365b11afc37d0b21bc1367e0a99096fc7887aae29e7ff4e3bd1cdee64dd9 libical-3.0.4.tar.gz"
|
11
temp/libical/automake.patch
Normal file
11
temp/libical/automake.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- ./configure.in.orig 2012-12-31 20:03:51.355227119 +0000
|
||||||
|
+++ ./configure.in 2012-12-31 20:04:03.445327143 +0000
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
|
-AM_CONFIG_HEADER(config.h)
|
||||||
|
+AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
|
dnl Initialize maintainer mode
|
||||||
|
AM_MAINTAINER_MODE
|
Loading…
Reference in a new issue