summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b60a79272d7724063a14771b6cf426879f668dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Honghao Li <im@rasphino.cn>

pkgname=sublime-merge
pkgver=1116
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=('ddd804f64fa218d053f00ca82b5bb2625f9812d3530c2f2f88049dac9bb41a7d'
            'a6b364b557bc88fe6202af9c67b6e486a172c9add28e882e434f83dd0eb19b33'
            'SKIP')

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"

}