summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5193b87c54564ca49e21291300cc658cbea93470 (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: Kaizhao Zhang <zhangkaizhao@gmail.com>

_srcname=CJK-character-count

pkgname=cjk-character-count
pkgver=0.15.1
pkgrel=1
pkgdesc='Program that counts the amount of CJK characters based on Unicode ranges and Chinese encoding standards 字体汉字计数软件'
arch=('any')
url='https://github.com/NightFurySL2001/CJK-character-count'
license=('MIT')
depends=(
  'python'
  'python-fonttools'
)
optdepends=(
  'python-pyglet: for Chinese (Traditional) version'
)
options=(!emptydirs !strip)
source=(
  "${_srcname}-v${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
  'CJK-character-count-en.desktop'
  'CJK-character-count-zhs.desktop'
  'CJK-character-count-zht.desktop'
)
sha256sums=(
  '776e4a6d8467e9b667586d5d17c72b9ed350449e685986c479c1397c4addc68a'
  '867a30183690e88ce0da13fd7c51abd7a436540fee24deefc68ac4dc8d19fae6'
  '34301f6b1b4812d97ba74f42382437a5794e4d1334ebc0f4dd514278b7fde5d0'
  'df70a15a2b93fb55521aa88f187eee20416d3923edaa6544502ce63891b17173'
)

package() {
  install -d "${pkgdir}/usr/share"
  cp -r "${_srcname}-${pkgver}" "${pkgdir}/usr/share/${pkgname}"
  install -d "${pkgdir}/usr/share/pixmaps"
  ln -s "/usr/share/${pkgname}/appicon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  ln -s "/usr/share/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 CJK-character-count-en.desktop "${pkgdir}/usr/share/applications/CJK-character-count-en.desktop"
  install -Dm644 CJK-character-count-zhs.desktop "${pkgdir}/usr/share/applications/CJK-character-count-zhs.desktop"
  install -Dm644 CJK-character-count-zht.desktop "${pkgdir}/usr/share/applications/CJK-character-count-zht.desktop"
}