summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e6b5a96b9e2861b80a2f9c07c46a9fa91e7d6cf (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
# Maintainer: PinkD <443657547@qq.com>

pkgname=rime-pinyin-zhwiki
pkgver=20200601
pkgrel=1
release=0.3
pkgdesc="Fcitx RIME Pinyin Dictionary from zh.wikipedia.org"
arch=('any')
url="https://github.com/PinkD/rime-pinyin-zhwiki"
license=('Apache')
source=("https://github.com/PinkD/rime-pinyin-zhwiki/archive/$release/$pkgname-$release.tar.gz"
        https://dumps.wikimedia.org/zhwiki/$pkgver/zhwiki-$pkgver-all-titles-in-ns0.gz)
md5sums=('08e82fbd561c3ea1c3f0b069e8cc1480'
         '223f9ddca5e26714ae2777399637aeac')

prepare() {
  cd $pkgname-$release
  cp ../zhwiki-$pkgver-all-titles-in-ns0.gz ./
}

build() {
  cd $pkgname-$release
  make VERSION="$pkgver"
}

package() {
  cd $pkgname-$release
  make VERSION="$pkgver" DESTDIR="$pkgdir" install
}