summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca0acad13365617cfc82199746a9ab60719684b3 (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
# Maintainer: Tobias Bauer <archlinux@tobias-bauer.de>
pkgname=ucx
pkgver=20.00.0.28
pkgrel=1
pkgdesc="UltraCompare is a powerful compare tool for files and folders."
arch=('i686' 'x86_64')
url="https://www.ultraedit.com/products/ultracompare/"
license=('custom')
depends=('desktop-file-utils' 'gtk2' 'libjpeg6' 'libpng12' 'libsm')
install=ucx.install
if [ "${CARCH}" = 'i686' ]; then
  source=(
    "https://downloads.ultraedit.com/main/uc/linux/tar/ucx-${pkgver}_i386.tar.gz"
    "https://www.ultraedit.com/assets/images/icons/uc.png"
  )
  md5sums=(
    '5f4741bc3f813c1956c11578ec2073fc'
    '8d3fc8b36460656eb1636abbace1996b'
  )
else
  source=(
    "https://downloads.ultraedit.com/main/uc/linux/tar/ucx-${pkgver}_amd64.tar.gz"
    "https://www.ultraedit.com/assets/images/icons/uc.png"
  )
  md5sums=(
    'cbb213fae30717573a57de2fdac4d85d'
    '8d3fc8b36460656eb1636abbace1996b'
  )
fi
DLAGENTS=('https::/usr/bin/curl -fLC - --user-agent Lynx --retry 3 --retry-delay 3 -o %o %u')

package() {
  install -d "${pkgdir}/opt" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/pixmaps" "${pkgdir}/usr/share/applications" "${pkgdir}/usr/share/licenses/${pkgname}"

  cp -R "${srcdir}/ucx" "${pkgdir}/opt"
  cp "${srcdir}/uc.png" "${pkgdir}/opt/ucx/share/ucx"
  ln -s "/opt/ucx/bin/ucx" "${pkgdir}/usr/bin/ucx"
  ln -s "/opt/ucx/share/ucx/uc.png" "${pkgdir}/usr/share/pixmaps/ucx.png"
  ln -s "/opt/ucx/share/ucx/ucx.desktop" "${pkgdir}/usr/share/applications/ucx.desktop"
  ln -s "/opt/ucx/share/doc/uex/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}