New package: treesheets
The website states it required wxWidgets3.1, but it runs fine with our 3wxW.0 so far. This software uses an unconventional, self-containing file hierarchy, hence the excessive `do_install()`. The template is based on @masato9000's initial contribution to the forum (https://forum.voidlinux.eu/t/cool-apps-for-new-packagers/1642/6). He is ok with my PR. Closes: #7598 [via git-merge-pr]
This commit is contained in:
parent
b46cb8e77b
commit
0b1a3d9d00
2 changed files with 38 additions and 0 deletions
2
srcpkgs/treesheets/files/treesheets.sh.in
Normal file
2
srcpkgs/treesheets/files/treesheets.sh.in
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec /usr/lib/%PKGNAME%/%EXENAME% "$@"
|
36
srcpkgs/treesheets/template
Normal file
36
srcpkgs/treesheets/template
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Template file for 'treesheets'
|
||||||
|
pkgname=treesheets
|
||||||
|
version=1.0.0
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
makedepends="wxWidgets-devel"
|
||||||
|
short_desc="Free Form Data Organizer"
|
||||||
|
maintainer="Piraty <piraty1@inbox.ru>"
|
||||||
|
license="ZLIB"
|
||||||
|
homepage="http://strlen.com/treesheets/"
|
||||||
|
distfiles="https://github.com/aardappel/treesheets/archive/v${version}.tar.gz"
|
||||||
|
checksum=13c01c48a6442e309e77126aeeed51d4e0a768ad808459c0dcd83ecc1d246c0f
|
||||||
|
|
||||||
|
build_wrksrc="src"
|
||||||
|
make_use_env=1
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
sed \
|
||||||
|
-e "s|%PKGNAME%|${pkgname}|" \
|
||||||
|
-e "s|%EXENAME%|${pkgname}|" \
|
||||||
|
${FILESDIR}/treesheets.sh.in > ${wrksrc}/treesheets.sh
|
||||||
|
vbin ${wrksrc}/treesheets.sh treesheets
|
||||||
|
vlicense ${wrksrc}/ZLIB_LICENSE.txt
|
||||||
|
vmkdir usr/lib/${pkgname} 755
|
||||||
|
vcopy ${wrksrc}/TS/docs usr/lib/${pkgname}
|
||||||
|
vinstall ${wrksrc}/TS/readme.html 644 usr/lib/${pkgname}
|
||||||
|
vcopy ${wrksrc}/TS/examples usr/lib/${pkgname}
|
||||||
|
vcopy ${wrksrc}/TS/images usr/lib/${pkgname}
|
||||||
|
vinstall ${wrksrc}/TS/treesheets 755 usr/lib/${pkgname}
|
||||||
|
vinstall ${wrksrc}/TS/treesheets.desktop 644 usr/share/applications
|
||||||
|
vinstall ${wrksrc}/TS/images/icon32.png 644 usr/share/pixmaps treesheets.png
|
||||||
|
vinstall ${wrksrc}/TS/images/icon16.png 644 usr/share/pixmaps treesheets-16x16.png
|
||||||
|
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
|
||||||
|
vdoc ${wrksrc}/TODO.txt
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue