treesheets: update to 1.0.2.

upstream switched to cmake
This commit is contained in:
Piraty 2020-04-21 01:59:55 +02:00
parent b465001ca9
commit a85de3a63b
2 changed files with 32 additions and 28 deletions

View file

@ -4,7 +4,7 @@ diff --git a/lobster/src/platform.cpp b/lobster/src/platform.cpp
index ceaec49..68e2443 100644 index ceaec49..68e2443 100644
--- lobster/src/platform.cpp --- lobster/src/platform.cpp
+++ lobster/src/platform.cpp +++ lobster/src/platform.cpp
@@ -46,6 +46,10 @@ @@ -50,6 +50,10 @@
#include "sdlincludes.h" // FIXME #include "sdlincludes.h" // FIXME
#endif #endif
@ -12,7 +12,7 @@ index ceaec49..68e2443 100644
+#define GLOB_TILDE 0 +#define GLOB_TILDE 0
+#endif +#endif
+ +
// Main dir to load files relative to, on windows this is where lobster.exe resides, on apple // Dirs to load files relative to, they typically contain, and will be searched in this order:
// platforms it's the Resource folder in the bundle. // - The project specific files. This is where the bytecode file you're running or the main
string datadir; // .lobster file you're compiling reside.

View file

@ -1,37 +1,41 @@
# Template file for 'treesheets' # Template file for 'treesheets'
pkgname=treesheets pkgname=treesheets
version=1.0.1 version=1.0.2
revision=1 revision=1
build_style=gnu-makefile build_style=cmake
make_build_args="WX_CONFIG=wx-config-gtk3"
makedepends="wxWidgets-gtk3-devel" makedepends="wxWidgets-gtk3-devel"
short_desc="Free Form Data Organizer" short_desc="Free Form Data Organizer"
maintainer="Piraty <piraty1@inbox.ru>" maintainer="Piraty <piraty1@inbox.ru>"
license="Zlib" license="Zlib"
homepage="http://strlen.com/treesheets/" homepage="http://strlen.com/treesheets/"
distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz" distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
checksum=cacf0593e12c484f68adf4d462147efed202b1c2d09e58e90c9fb98cb3e7b874 checksum=84eb82f122bc7be3ded399d2511536128911477a4a69c51b26b856de2160405f
build_wrksrc="src" # tell FindwxWidgets.cmake to use wx-config-gtk3
make_use_env=1 export WX_CONFIG=wx-config-gtk3
do_install() { do_install() {
sed \ vmkdir usr/lib/${pkgname}
-e "s|%PKGNAME%|${pkgname}|" \
-e "s|%EXENAME%|${pkgname}|" \ vinstall build/TS/treesheets 755 usr/lib/${pkgname}
${FILESDIR}/treesheets.sh.in > ${wrksrc}/treesheets.sh printf '#!/bin/sh\nexec /usr/lib/treesheets/treesheets "$@"' > treesheets.sh
vbin ${wrksrc}/treesheets.sh treesheets vbin treesheets.sh treesheets
vlicense ${wrksrc}/ZLIB_LICENSE.txt
vmkdir usr/lib/${pkgname} 755 vlicense ZLIB_LICENSE.txt
vcopy ${wrksrc}/TS/docs usr/lib/${pkgname}
vinstall ${wrksrc}/TS/readme.html 644 usr/lib/${pkgname} vdoc TS/readme.html
vcopy ${wrksrc}/TS/examples usr/lib/${pkgname} vcopy "TS/docs/*" usr/share/doc/${pkgname}
vcopy ${wrksrc}/TS/images usr/lib/${pkgname}
vinstall ${wrksrc}/src/treesheets 755 usr/lib/${pkgname} vcopy TS/examples usr/lib/${pkgname}
vinstall ${wrksrc}/TS/treesheets.desktop 644 usr/share/applications vcopy TS/images usr/lib/${pkgname}
vinstall ${wrksrc}/TS/images/icon32.png 644 usr/share/pixmaps treesheets.png vcopy TS/scripts usr/lib/${pkgname}
vinstall ${wrksrc}/TS/images/icon16.png 644 usr/share/pixmaps treesheets-16x16.png vcopy TS/translations usr/lib/${pkgname}
vinstall ${wrksrc}/TS/images/treesheets.svg 644 usr/share/pixmaps treesheets.svg
sed -i "s|Icon=images/treesheets.svg|Icon=treesheets.png|" ${DESTDIR}/usr/share/applications/treesheets.desktop vinstall TS/images/icon32.png 644 usr/share/pixmaps treesheets.png
vdoc ${wrksrc}/TODO.txt vinstall TS/images/icon16.png 644 usr/share/pixmaps treesheets-16x16.png
vinstall TS/images/treesheets.svg 644 usr/share/pixmaps treesheets.svg
vmkdir usr/share/applications/
vsed -i "s|Icon=images/treesheets.svg|Icon=treesheets.png|" TS/treesheets.desktop
vinstall TS/treesheets.desktop 644 usr/share/applications
} }