7308632f6c
It seems the the CFLAGS are not properly set in the CMakeLists.txt. Cmake currently appends -std=gnu90 at the end of the CFLAGS, overriding the earlier set -std=c99. Work around this with sed. Better fix is welcome, this is a stop-gap solution to unbreak the build (which is blocking build.postmarketos.org).
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=buho
|
|
pkgver=0_git20190924
|
|
pkgrel=1
|
|
_commit="375480f43ca3f1eefb0fe029582426ad94e760ae"
|
|
pkgdesc="Note taking app based on MauiKit"
|
|
arch="all"
|
|
url="https://invent.kde.org/kde/buho"
|
|
license="GPL-2.0-or-later"
|
|
depends="mauikit"
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtquickcontrols2-dev qt5-qtwebengine-dev mauikit-dev ki18n-dev knotifications-dev kconfig-dev kio-dev attica-dev"
|
|
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/buho/-/archive/$_commit.tar.gz"
|
|
options="!check" # No tests available
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
build() {
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
# Workaround for broken CMakeLists.txt
|
|
sed -i s/std=gnu90/std=c99/g CMakeFiles/buho.dir/flags.make
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" make install
|
|
}
|
|
sha512sums="5ab80674990634c3791e3e9efded2f03d1c671c043dd8c10bbab24903a01d2fcbd378b784ef7608e8d2db71ab8bdcb0d8c93ce00540cb97c753430498c5c2df0 buho-375480f43ca3f1eefb0fe029582426ad94e760ae.tar.gz"
|