28 lines
1.1 KiB
Bash
28 lines
1.1 KiB
Bash
# Template file for 'sublime-merge'
|
|
pkgname=sublime-merge
|
|
version=1084
|
|
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 <noblehelm@gmail.com>"
|
|
license="Proprietary"
|
|
homepage="https://www.sublimemerge.com"
|
|
distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz"
|
|
checksum=eb5823206a777f5b34c7aa780a6f47c63277dc77c1551bed4e52d9f19a3844b3
|
|
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
|
|
}
|