Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / pypinyin
Commits:
12e7911c by Felix Yan at 2024-08-26T18:49:29+03:00
upgpkg: 0.51.0-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,11 +1,12 @@
pkgbase = pypinyin
pkgdesc = Chinese characters transliteration module and tool
- pkgver = 0.50.0
- pkgrel = 3
+ pkgver = 0.51.0
+ pkgrel = 1
url = https://github.com/mozillazg/python-pinyin
arch = any
license = MIT
checkdepends = python-pytest-cov
+ makedepends = git
makedepends = python-setuptools
makedepends = python-build
makedepends = python-installer
@@ -13,7 +14,7 @@ pkgbase = pypinyin
makedepends = phrase-pinyin-data
makedepends = pinyin-data
depends = python
- source =
https://github.com/mozillazg/python-pinyin/archive/v0.50.0/python-pinyin-0.50.0.tar.gz
- sha256sums =
aa6cfc7faba074d370565fe9a5e044efba097dff61ba7968ef8704f7db12c1e8
+ source = git+https://github.com/mozillazg/python-pinyin.git#tag=v0.51.0
+ sha256sums =
a564c80affdf9774a612143426b5b0b0a0ae619762d97b331da33696fbabc6c3
pkgname = pypinyin
=====================================
PKGBUILD
=====================================
@@ -2,37 +2,39 @@
# Contributor: Štěpán Němec <[email protected]>
pkgname=pypinyin
-pkgver=0.50.0
-pkgrel=3
+pkgver=0.51.0
+pkgrel=1
pkgdesc='Chinese characters transliteration module and tool'
arch=('any')
url='https://github.com/mozillazg/python-pinyin'
license=('MIT')
depends=('python')
-makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel' 'phrase-pinyin-data' 'pinyin-data')
+makedepends=('git' 'python-setuptools' 'python-build' 'python-installer'
'python-wheel'
+ 'phrase-pinyin-data' 'pinyin-data')
checkdepends=('python-pytest-cov')
-source=("https://github.com/mozillazg/python-pinyin/archive/v$pkgver/python-pinyin-$pkgver.tar.gz")
-sha256sums=('aa6cfc7faba074d370565fe9a5e044efba097dff61ba7968ef8704f7db12c1e8')
+source=("git+https://github.com/mozillazg/python-pinyin.git#tag=v$pkgver")
+sha256sums=('a564c80affdf9774a612143426b5b0b0a0ae619762d97b331da33696fbabc6c3')
prepare() {
- cd python-pinyin-$pkgver
+ cd python-pinyin
+ sed -i 's/: sync_submodule/:/' Makefile
ln -s /usr/share/pinyin-data/pinyin.txt pinyin-data/
ln -s /usr/share/phrase-pinyin-data/pinyin.txt phrase-pinyin-data/
}
build() {
- cd python-pinyin-$pkgver
+ cd python-pinyin
make gen_data
python -m build --wheel --no-isolation
}
check() {
- cd python-pinyin-$pkgver
+ cd python-pinyin
pytest pypinyin tests
}
package() {
- cd python-pinyin-$pkgver
+ cd python-pinyin
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pypinyin/-/commit/12e7911cf6e42e3e1e8d3cf0700cb1acbced8eaa
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pypinyin/-/commit/12e7911cf6e42e3e1e8d3cf0700cb1acbced8eaa
You're receiving this email because of your account on gitlab.archlinux.org.