diff --git a/srcpkgs/webapp-manager/template b/srcpkgs/webapp-manager/template new file mode 100644 index 00000000000000..452d1d44a72f16 --- /dev/null +++ b/srcpkgs/webapp-manager/template @@ -0,0 +1,32 @@ +# Template file for 'webapp-manager' +pkgname=webapp-manager +version=1.4.6 +revision=1 +build_style=gnu-makefile +hostmakedepends="gettext" +depends="dconf python3-BeautifulSoup4 python3-configobj python3-gobject python3-Pillow + python3-setproctitle python3-tldextract xapps xapp-symbolic-icons" +short_desc="Run websites as if they were apps" +maintainer="xeroxslayer " +license="GPL-3.0-or-later" +homepage="https://github.com/linuxmint/webapp-manager" +distfiles="https://github.com/linuxmint/webapp-manager/archive/refs/tags/${version}.tar.gz" +checksum="14834bca23a8b961c84c478cf9068f92cc6a5bb3a02fa2f2db9b37d348536931" + +pre_build() { + # Fix license path. + vsed "s|common-licenses/GPL|licenses/${pkgname}/LICENSE|" -i usr/lib/${pkgname}/${pkgname}.py + + # Set version in About dialog. + vsed "s|__DEB_VERSION__|${version}|" -i usr/lib/${pkgname}/${pkgname}.py + + # Patch the icon set, make it use any symbolic icons, not the XApps ones. +# vsed "s|xsi-keyboard-shortcuts|preferences-desktop-keyboard-shortcuts|g" -i usr/lib/${pkgname}/${pkgname}.py +# vsed "s|xsi-||g" -i usr/share/${pkgname}/${pkgname}.ui usr/lib/${pkgname}/${pkgname}.py +} + +do_install() { + vcopy etc / + vcopy usr / + vlicense LICENSE +} diff --git a/srcpkgs/xapp-symbolic-icons/template b/srcpkgs/xapp-symbolic-icons/template new file mode 100644 index 00000000000000..ad45e4a7e2bc0f --- /dev/null +++ b/srcpkgs/xapp-symbolic-icons/template @@ -0,0 +1,18 @@ +# Template file for 'xapp-symbolic-icons' +pkgname=xapp-symbolic-icons +version=1.1.0 +revision=1 +build_style=meson +short_desc="XApp/GTK symbolic icons" +maintainer="xeroxslayer " +license="LGPL-3.0-or-later" +homepage="https://github.com/xapp-project/xapp-symbolic-icons" +distfiles="https://github.com/xapp-project/xapp-symbolic-icons/archive/refs/tags/${version}.tar.gz" +checksum="fa96ac6a1a85c0cb16dccab5c03ae1e651a3482cde4a93f792956977bc19108d" + +post_install() { + # Remove unneeded Ubuntu/Debian/Mint specific stuff. + rm -r ${DESTDIR}/usr/bin + rm -r ${DESTDIR}/usr/share/xapp + vlicense LICENSE +}