-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
36 lines (33 loc) · 1.12 KB
/
PKGBUILD
File metadata and controls
36 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pkgname=liblvgl
pkgver=9.2.2
pkgrel=1
pkgdesc="LVGL Library"
arch=('x86_64')
url="https://lvgl.io"
license=('MIT')
depends=('mingw-w64-x86_64-ffmpeg')
makedepends=('mingw-w64-x86_64-cmake' 'mingw-w64-x86_64-pkg-config' 'mingw-w64-x86_64-tools-git')
source=("https://github.com/lvgl/lvgl/archive/refs/tags/v$pkgver.tar.gz"
"lv_conf_win.h"
"fix-CMakeLists.txt.patch"
"fix-custom.cmake.patch"
"fix-lv_blend_neon.S.patch")
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
prepare() {
cd "$srcdir/lvgl-$pkgver"
cp "$srcdir/lv_conf_win.h" "$srcdir/lv_conf.h"
patch -p1 < "$srcdir/fix-CMakeLists.txt.patch"
patch -p1 < "$srcdir/fix-custom.cmake.patch"
patch -p1 < "$srcdir/fix-lv_blend_neon.S.patch"
}
build() {
cd "$srcdir/lvgl-$pkgver"
mkdir -p build
cd build
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX -DLV_CONF_BUILD_DISABLE_DEMOS=0 -DLV_CONF_BUILD_DISABLE_EXAMPLES=0 -DLV_CONF_PATH="$srcdir/lv_conf.h" ..
make
}
package() {
cd "$srcdir/lvgl-$pkgver/build"
make DESTDIR="$pkgdir/mingw64" install
}