void-packages/srcpkgs/treesheets/template

38 lines
1.4 KiB
Bash

# Template file for 'treesheets'
pkgname=treesheets
version=1.0.1
revision=1
build_style=gnu-makefile
make_build_args="WX_CONFIG=wx-config-gtk3"
makedepends="wxWidgets-gtk3-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=cacf0593e12c484f68adf4d462147efed202b1c2d09e58e90c9fb98cb3e7b874
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}/src/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
}