Skip to content
Snippets Groups Projects
Unverified Commit 1b7abcef authored by alice's avatar alice
Browse files

community/libwpe: modernise

parent 6a82a9d6
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,12 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libwpe
pkgver=1.12.0
pkgrel=0
pkgrel=1
pkgdesc="General-purpose library specifically developed for the WPE-flavored port of WebKit"
url="https://wpewebkit.org/"
arch="all"
license="BSD-2-Clause"
makedepends="cmake mesa-dev libxkbcommon-dev"
makedepends="cmake mesa-dev libxkbcommon-dev samurai"
options="!check" # no tests
subpackages="$pkgname-dev $pkgname-dbg"
source="https://github.com/WebPlatformForEmbedded/libwpe/releases/download/$pkgver/libwpe-$pkgver.tar.xz"
......@@ -16,19 +16,17 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
$CMAKE_CROSSOPTS .
make
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
$CMAKE_CROSSOPTS
cmake --build build
}
package() {
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment