From 56e3877e5315264e1c884f9b66416fb4ccfbf6dc Mon Sep 17 00:00:00 2001 From: noblehelm Date: Fri, 21 Sep 2018 16:59:07 -0300 Subject: [PATCH] New package: sublime-merge-1075 --- srcpkgs/sublime-merge/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/sublime-merge/template diff --git a/srcpkgs/sublime-merge/template b/srcpkgs/sublime-merge/template new file mode 100644 index 00000000000..bc9bf26dbb5 --- /dev/null +++ b/srcpkgs/sublime-merge/template @@ -0,0 +1,27 @@ +# Template file for 'sublime-merge' +pkgname=sublime-merge +version=1075 +revision=1 +only_for_archs="x86_64" +repository="nonfree" +depends="libpng gtk+ hicolor-icon-theme desktop-file-utils" +short_desc="New Git client, from the makers of Sublime Text" +maintainer="Adelmo Junior " +license="Proprietary" +homepage="https://www.sublimemerge.com" +distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz" +checksum=db790ff9f77fdc10a9af0bd8c12bce6362868bd79deb4c5fe6f5e38ea9c6276e +wrksrc="sublime_merge" +nopie=yes + +do_install() { + vmkdir "usr/bin" + vmkdir "usr/share/sublime_merge" + cp --preserve=mode -r ${wrksrc}/* "${DESTDIR}/usr/share/sublime_merge" + vinstall "sublime_merge.desktop" 644 "usr/share/applications/" + for size in 16 32 48 128 256; do + vinstall "Icon/${size}x${size}/sublime-merge.png" 644 "usr/share/icons/hicolor/${size}x${size}/apps/" + done + ln -s /usr/share/sublime-merge/sublime_merge ${DESTDIR}/usr/bin/subl-merge + sed -i 's:Exec=/opt/sublime_merge/sublime_merge:Exec=/usr/share/sublime_merge/sublime_merge:' ${DESTDIR}/usr/share/applications/sublime_merge.desktop +}