$ makepkg -i -p PKGBUILD
Created
July 16, 2020 02:00
-
-
Save damien-biasotto/ab306a8071c6403e6da7870c1a8c0f83 to your computer and use it in GitHub Desktop.
Sublime-Merge 2020 - Archlinux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Honghao Li <[email protected]> | |
# Maintainer: Damien Biasotto <[email protected]> | |
pkgname=sublime-merge | |
pkgver=2020 | |
pkgrel=1 | |
pkgdesc="Meet a new Git Client, from the makers of Sublime Text" | |
arch=('x86_64') | |
url="https://www.sublimemerge.com" | |
license=('custom') | |
depends=('gtk3') | |
optdepends=() | |
conflicts=('sublime-merge-dev') | |
#install=${pkgname}.install | |
source=('smerge'::https://download.sublimetext.com/sublime_merge_build_${pkgver}_x64.tar.xz | |
https://download.sublimetext.com/sublime_merge_build_${pkgver}_x64.tar.xz.asc) | |
sha256sums=('f7670a0b0284937d4b94c2fa729459a70ad2b7f80a819935612c4675afc2b864' | |
'a5781a3ebf3ad6bbc21f702154557de14c01ad61c51917ace14269014c815cdf' | |
) | |
validpgpkeys=('1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A') | |
package() { | |
cd "${srcdir}" | |
install -dm755 "${pkgdir}/opt" | |
cp --preserve=mode -r "sublime_merge" "${pkgdir}/opt/sublime_merge" | |
for res in 128x128 16x16 256x256 32x32 48x48; do | |
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" | |
ln -s "/opt/sublime_merge/Icon/${res}/sublime-merge.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-merge.png" | |
done | |
install -dm755 "${pkgdir}/usr/share/applications" | |
mv "${pkgdir}/opt/sublime_merge/sublime_merge.desktop" "${pkgdir}/usr/share/applications/sublime_merge.desktop" | |
install -dm755 "${pkgdir}/usr/bin" | |
install -Dm755 "smerge" "${pkgdir}/usr/bin/smerge" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment