name : iup version : 3.30 release : 1 source : - https://sourceforge.net/projects/iup/files/3.30/Docs%20and%20Sources/iup-3.30_Sources.zip : 656c6dd8edcfb4077f3cc43242e687212b9a70ddf10d509856316c3f87be1313 homepage : https://iup.sourceforge.net/ license : MIT component : multimedia.graphics summary : A multi-platform toolkit for building graphical user interfaces description: | IUP is a multi-platform toolkit for building graphical user interfaces. It offers a simple API in three basic languages: C, Lua and LED. IUP's purpose is to allow a program source code to be compiled in different systems without any modification. builddeps : - pkgconfig(ftgl) - pkgconfig(glu) - pkgconfig(lua) - pkgconfig(webkit2gtk-4.0) - pkgconfig(libim) - pkgconfig(libcd) - pkgconfig(libim-lua) - pkgconfig(libcd-lua) - lsb-release rundeps: - lua-devel: - iup-lua patterns : - lua : - /usr/bin/iuplua* - /usr/lib64/libiuplua*.so.* - /usr/share/applications/iuplua* - /usr/share/icons/iuplua* - lua-devel : - /usr/include/tecgraf/iup/iuplua*.h - /usr/lib64/libiuplua*.so - /usr/lib64/pkgconfig/*lua.pc environment: export USE_PKGCONFIG=Yes export USE_LUA_VERSION=53 export LIBLUA_SFX= export LUA_SFX= export LUA_INC=/usr/include export LUA_LIB=/usr/lib export LUA_BIN=/usr/bin/lua export IM_LIB=/usr/lib export IM_INC=/usr/include/tecgraf/im export CD_LIB=/usr/lib export CD_INC=/usr/include/tecgraf/cd export FTGL_LIB=/usr/lib export FTGL_INC=/usr/include setup : | %patch -p1 < $pkgfiles/0001-Disabling-static-linux6-support.patch %patch -p1 < $pkgfiles/0002-fix-lua-sfx.patch %patch -p1 < $pkgfiles/0003-shared-links.patch build : | %make -j1 install : | install -dm00755 $installdir/usr/{bin,lib64/pkgconfig,include/tecgraf/iup,share/{icons,applications}} install -m00644 $pkgfiles/*.pc $installdir/usr/lib64/pkgconfig rm lib/Linux63_64/{*.a,Lua/*.a} chmod -R 00755 lib/Linux63_64/* mv lib/Linux63_64/*.* $installdir/usr/lib64/ mv lib/Linux63_64/Lua/*.* $installdir/usr/lib64/ install -m00644 include/* $installdir/usr/include/tecgraf/iup/ install -m00755 bin/Linux63_64/{iupview,iupvled,ledc} $installdir/usr/bin install -m00755 bin/Linux63_64/Lua/{iuplua,iupluascripter} $installdir/usr/bin install -m00644 $pkgfiles/*.desktop $installdir/usr/share/applications install -m00644 $pkgfiles/tecgraf-logo.png $installdir/usr/share/icons/iup.png install -m00644 $pkgfiles/tecgraf-logo.png $installdir/usr/share/icons/iuplua.png