blob: 877085e95ef6056213552c468e242e650eac0810 (
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
38
39
|
pkgname=imgui
# On each update, keep up to date with latest sha in https://github.com/microsoft/vcpkg/commits/master/ports/imgui
_vcpkg_sha=f7a371bbd9945c9059875492ba018ec12cb925c2
pkgver=1.90.7
pkgrel=1
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=("$pkgname-$pkgver.tar.gz::https://codeload.github.com/ocornut/imgui/tar.gz/v${pkgver}"
"CMakeLists.v${pkgver}-${pkgrel}.txt::https://raw.githubusercontent.com/microsoft/vcpkg/${_vcpkg_sha}/ports/imgui/CMakeLists.txt"
"imgui-config.v${pkgver}-${pkgrel}.cmake.in::https://raw.githubusercontent.com/microsoft/vcpkg/${_vcpkg_sha}/ports/imgui/imgui-config.cmake.in")
sha256sums=('872574217643d4ad7e9e6df420bb8d9e0d468fb90641c2bf50fd61745e05de99'
'f1d4a017e97f2a43ee4f79ceba7a7c26c068bc29703e8d3a937193b7729260c5'
'dc7580735db811d67e61fc3a37037f72aabc36c23d074ab98e670b00ad3f4a97')
prepare () {
cp CMakeLists.v${pkgver}-${pkgrel}.txt ${pkgname}-${pkgver}/CMakeLists.txt
cp imgui-config.v${pkgver}-${pkgrel}.cmake.in ${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:
|