Date: Friday, March 11, 2022 @ 22:48:53 Author: felixonmars Revision: 1148859
archrelease: copy trunk to community-any Added: fcitx5-pinyin-zhwiki/repos/community-any/PKGBUILD (from rev 1148858, fcitx5-pinyin-zhwiki/trunk/PKGBUILD) Deleted: fcitx5-pinyin-zhwiki/repos/community-any/PKGBUILD ----------+ PKGBUILD | 100 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-11 22:48:42 UTC (rev 1148858) +++ PKGBUILD 2022-03-11 22:48:53 UTC (rev 1148859) @@ -1,50 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=fcitx5-pinyin-zhwiki -pkgname=(fcitx5-pinyin-zhwiki rime-pinyin-zhwiki) -_converterver=0.2.3 -_zhwikiver=20220220 -_webslangver=20220226 -pkgver=$_converterver.$_webslangver -pkgrel=1 -epoch=1 -pkgdesc="Fcitx 5 Pinyin Dictionary from zh.wikipedia.org" -arch=('any') -url="https://github.com/felixonmars/fcitx5-pinyin-zhwiki" -license=('CCPL:by-sa' 'custom:GFDL') -makedepends=('libime' 'opencc' 'pypinyin') -source=(https://github.com/felixonmars/fcitx5-pinyin-zhwiki/archive/$_converterver/$pkgbase-$_converterver.tar.gz - https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/$_converterver/web-slang-$_webslangver.source - https://dumps.wikimedia.org/zhwiki/$_zhwikiver/zhwiki-$_zhwikiver-all-titles-in-ns0.gz - https://www.gnu.org/licenses/fdl-1.3.txt) -sha512sums=('b09e4e29e4c3e5e9007f28d56e2ac07663ad56eb1e4004dad647de7f4b41522054a65c40f952bb3752ea6015b3b1adc30f95922749cd5653ea60b9d151dd4013' - '7077885e4236ba6d6890a022c61de3fc91718854bd8d25f0c175158967d228b05964ee5b7d9d86d8b2308dc366cc471e0bd89ecac931880e276baa746b8c5c22' - 'a7c3e8f21066bc1e8ed94744c4cbf2dcdcc246e137db7d2bb4811ebc3c2ac56276029e27f3d9df5f144f94392e1cdbc197fc9e5d6304bcfb63ba81dfcf0c7cda' - '22d46818d3998ad841f537af4de7c50440dd918099fb6c5d4ab324cd71dc03066bfe1b67210a5efde77abd1d97b88da3c3dbfc39a24ae7248ee2d64e7f0fe6bb') - -_make="make -L VERSION=$_zhwikiver WEB_SLANG_VERSION=$_webslangver" - -prepare() { - cd $pkgbase-$_converterver - # Workaround pacman decompression - touch zhwiki-$_zhwikiver-all-titles-in-ns0.gz - ln -s ../zhwiki-$_zhwikiver-all-titles-in-ns0 - ln -s ../web-slang-$_webslangver.source -} - -build() { - cd $pkgbase-$_converterver - $_make zhwiki.dict zhwiki.dict.yaml -} - -package_fcitx5-pinyin-zhwiki() { - cd $pkgbase-$_converterver - $_make DESTDIR="$pkgdir" install - install -Dm644 ../fdl-1.3.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ -} - -package_rime-pinyin-zhwiki() { - cd $pkgbase-$_converterver - $_make DESTDIR="$pkgdir" install_rime_dict - install -Dm644 ../fdl-1.3.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ -} Copied: fcitx5-pinyin-zhwiki/repos/community-any/PKGBUILD (from rev 1148858, fcitx5-pinyin-zhwiki/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-11 22:48:53 UTC (rev 1148859) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=fcitx5-pinyin-zhwiki +pkgname=(fcitx5-pinyin-zhwiki rime-pinyin-zhwiki) +_converterver=0.2.3 +_zhwikiver=20220301 +_webslangver=20220312 +pkgver=$_converterver.$_webslangver +pkgrel=1 +epoch=1 +pkgdesc="Fcitx 5 Pinyin Dictionary from zh.wikipedia.org" +arch=('any') +url="https://github.com/felixonmars/fcitx5-pinyin-zhwiki" +license=('CCPL:by-sa' 'custom:GFDL') +makedepends=('libime' 'opencc' 'pypinyin') +source=(https://github.com/felixonmars/fcitx5-pinyin-zhwiki/archive/$_converterver/$pkgbase-$_converterver.tar.gz + https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/$_converterver/web-slang-$_webslangver.source + https://dumps.wikimedia.org/zhwiki/$_zhwikiver/zhwiki-$_zhwikiver-all-titles-in-ns0.gz + https://www.gnu.org/licenses/fdl-1.3.txt) +sha512sums=('b09e4e29e4c3e5e9007f28d56e2ac07663ad56eb1e4004dad647de7f4b41522054a65c40f952bb3752ea6015b3b1adc30f95922749cd5653ea60b9d151dd4013' + 'd1b458469bb0b83ad901e7eb6fe8bb0c74a1af8671fe41f07a2bb9ba7d1f723965075273de901dc91f1c51daeacc4eb1c73562c6fcd5d07b7abb4ffbf723f679' + '3c17ea751f78cd3ac4188214c81b82e0b70d336ce002c091436849eaf40c1b17dbaa02f897f6cdc8abdbb0329c07f5be50cdd9d9febbe4eca0586ce418b8df96' + '22d46818d3998ad841f537af4de7c50440dd918099fb6c5d4ab324cd71dc03066bfe1b67210a5efde77abd1d97b88da3c3dbfc39a24ae7248ee2d64e7f0fe6bb') + +_make="make -L VERSION=$_zhwikiver WEB_SLANG_VERSION=$_webslangver" + +prepare() { + cd $pkgbase-$_converterver + # Workaround pacman decompression + touch zhwiki-$_zhwikiver-all-titles-in-ns0.gz + ln -s ../zhwiki-$_zhwikiver-all-titles-in-ns0 + ln -s ../web-slang-$_webslangver.source +} + +build() { + cd $pkgbase-$_converterver + $_make zhwiki.dict zhwiki.dict.yaml +} + +package_fcitx5-pinyin-zhwiki() { + cd $pkgbase-$_converterver + $_make DESTDIR="$pkgdir" install + install -Dm644 ../fdl-1.3.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +} + +package_rime-pinyin-zhwiki() { + cd $pkgbase-$_converterver + $_make DESTDIR="$pkgdir" install_rime_dict + install -Dm644 ../fdl-1.3.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}