blob: c117fab167f7132ba1bac253d42fb13a0ccfdda2 (
plain)
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
37
|
pkgname=imgui
pkgver=1.89.5
pkgrel=2
pkgdesc="Bloat-free Graphical User interface for C++"
license=('MIT')
arch=('x86_64')
url="https://github.com/ocornut/imgui"
depends=('gcc-libs')
makedepends=('cmake')
source=("https://codeload.github.com/ocornut/imgui/tar.gz/v${pkgver}"
"CMakeLists.txt.v${pkgver}-${pkgrel}::https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/CMakeLists.txt"
"imgui-config.cmake.in.v${pkgver}-${pkgrel}::https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/imgui-config.cmake.in")
sha256sums=('eab371005c86dd029523a0c4ba757840787163740d45c1f4e5a110eb21820546'
'babb55a73a4449c4cee837ae029a9cf346089324400922e2f59ba22b08b6ce73'
'872817faad3a5c1f221a42309dc1b7c9c26434630df63d49a2b85a573c9598ed')
prepare () {
cp CMakeLists.txt.v${pkgver}-${pkgrel} ${pkgname}-${pkgver}/CMakeLists.txt
cp imgui-config.cmake.in.v${pkgver}-${pkgrel} ${pkgname}-${pkgver}/imgui-config.cmake.in
}
build() {
cd $pkgname-$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-S. \
-B cmake-build-shared
cmake --build cmake-build-shared
}
package() {
cd $pkgname-$pkgver
make -C cmake-build-shared DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|