WIP: Add imgui
This commit is contained in:
parent
0eef469b86
commit
1125ba5d98
|
@ -0,0 +1,36 @@
|
|||
pkgname=imgui
|
||||
pkgver=1.87
|
||||
pkgrel=1
|
||||
pkgdesc="Bloat-free Graphical User interface for C++"
|
||||
license=('MIT')
|
||||
arch=('x86_64')
|
||||
url="https://github.com/ocornut/imgui"
|
||||
depends=('gcc-libs' 'wget')
|
||||
makedepends=('cmake')
|
||||
source=("https://codeload.github.com/ocornut/imgui/tar.gz/v${pkgver}"
|
||||
"https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/CMakeLists.txt"
|
||||
"https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/imgui-config.cmake.in")
|
||||
sha256sums=('b54ceb35bda38766e36b87c25edf7a1cd8fd2cb8c485b245aedca6fb85645a20'
|
||||
'1a8458a453e3e93cdca6c72ccb2f218607301bc7d6580718febb428e446720a4'
|
||||
'91528f60cca93d3bce042d2ac16a63169025ec25a34453b49803126ed19153ae')
|
||||
|
||||
prepare () {
|
||||
cp CMakeLists.txt imgui-config.cmake.in $pkgname-$pkgver
|
||||
}
|
||||
|
||||
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:
|
|
@ -0,0 +1,41 @@
|
|||
pkgname=mingw-w64-imgui
|
||||
pkgver=1.81
|
||||
pkgrel=1
|
||||
pkgdesc="Bloat-free Graphical User interface for C++ (mingw-w64)"
|
||||
license=('MIT')
|
||||
arch=('any')
|
||||
url="https://github.com/ocornut/imgui"
|
||||
depends=('mingw-w64-crt')
|
||||
makedepends=('mingw-w64-cmake')
|
||||
options=('!buildflags' 'staticlibs' '!strip')
|
||||
source=("https://github.com/ocornut/imgui/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('f7c619e03a06c0f25e8f47262dbc32d61fd033d2c91796812bf0f8c94fca78fb')
|
||||
|
||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
||||
|
||||
prepare() {
|
||||
cd imgui-$pkgver
|
||||
wget https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/CMakeLists.txt
|
||||
wget https://raw.githubusercontent.com/microsoft/vcpkg/master/ports/imgui/imgui-config.cmake.in
|
||||
}
|
||||
|
||||
|
||||
build() {
|
||||
cd imgui-$pkgver
|
||||
for _arch in ${_architectures}; do
|
||||
mkdir -p build-${_arch} && pushd build-${_arch}
|
||||
${_arch}-cmake ..
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
for _arch in ${_architectures}; do
|
||||
cd "$srcdir/imgui-${pkgver}/build-${_arch}"
|
||||
make DESTDIR="$pkgdir" install
|
||||
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
|
||||
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue