summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42ab8928e0e006b1d510fb725f47498894590567 (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
pkgname=babelmap
pkgver=9.0.0.1
pkgrel=1
pkgdesc="A Unicode character map for Windows."
arch=('any')
url="http://www.babelstone.co.uk/Software/BabelMap.html"
license=('custom')
depends=('wine' 'xdg-utils')
makedepends=('icoutils' 'imagemagick')
source=('http://www.babelstone.co.uk/Software/3004/BabelMap.zip'
        'babelmap'
        'babelmap.desktop'
        'LICENSE')
sha256sums=('24af25ed0b3cb6ad51bba668f4f4552db08e247e1ebff9c802c4eef2778fa307'
            '5d62cd3c9bf31ca196e98da3d2eff27c6642c05f8ad9893cd1e73cdf08eb1573'
            '332804bcab37fdf223a9b55cead76c1c12e4c0e7f3df1691c93c9ad98e537274'
            '90544b87643dad089f816791171a909827bbdce12df7113543d005ffbfb53d64')

build() {
  wrestool -x -n 131 BabelMap.exe > babelmap.ico 2>/dev/null
  convert babelmap.ico babelmap.png
}

package() {
  install -Dm755 "${srcdir}/BabelMap.exe" "${pkgdir}/usr/share/babelmap/BabelMap.exe"
  install -Dm755 "${srcdir}/babelmap" "${pkgdir}/usr/bin/babelmap"
  install -Dm644 "${srcdir}/babelmap.desktop" "${pkgdir}/usr/share/applications/babelmap.desktop"
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/babelmap/LICENSE"

  install -Dm644 "${srcdir}/babelmap-1.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/babelmap.png"
  install -Dm644 "${srcdir}/babelmap-0.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/babelmap.png"
  install -Dm644 "${srcdir}/babelmap-2.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/babelmap.png"
}