migrated to python3
This commit is contained in:
parent
d9e07bfb80
commit
5862bb170f
5
.SRCINFO
5
.SRCINFO
|
@ -1,17 +1,16 @@
|
||||||
pkgbase = pinyin-completion
|
pkgbase = pinyin-completion
|
||||||
pkgdesc = complete path name based upon the pinyin acronym of Chinese characters
|
pkgdesc = complete path name based upon the pinyin acronym of Chinese characters
|
||||||
pkgver = 34.68173f0
|
pkgver = 56.5feec0b
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/petronny/pinyin-completion
|
url = https://github.com/petronny/pinyin-completion
|
||||||
install = pinyin-completion.install
|
install = pinyin-completion.install
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL3
|
license = GPL3
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = python2
|
depends = python
|
||||||
source = git+https://github.com/petronny/pinyin-completion
|
source = git+https://github.com/petronny/pinyin-completion
|
||||||
source = pinyin-completion.install
|
source = pinyin-completion.install
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = f6dbcc8fc15c6de71897281f1d64f05df7dfd1e5ec3b1a70bd46a4f3078f9f13
|
sha256sums = f6dbcc8fc15c6de71897281f1d64f05df7dfd1e5ec3b1a70bd46a4f3078f9f13
|
||||||
|
|
||||||
pkgname = pinyin-completion
|
pkgname = pinyin-completion
|
||||||
|
|
||||||
|
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
*.log
|
||||||
|
*.tar*
|
||||||
|
*/
|
10
PKGBUILD
10
PKGBUILD
|
@ -1,12 +1,12 @@
|
||||||
# Maintainer: Petron <petron@archlinuxcn.org>
|
# Maintainer: Jingbei Li <i@jingbei.li>
|
||||||
pkgname=pinyin-completion
|
pkgname=pinyin-completion
|
||||||
pkgver=34.68173f0
|
pkgver=56.5feec0b
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="complete path name based upon the pinyin acronym of Chinese characters"
|
pkgdesc="complete path name based upon the pinyin acronym of Chinese characters"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/petronny/pinyin-completion"
|
url="https://github.com/petronny/pinyin-completion"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('python2')
|
depends=('python')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
source=("git+https://github.com/petronny/pinyin-completion"
|
source=("git+https://github.com/petronny/pinyin-completion"
|
||||||
"pinyin-completion.install")
|
"pinyin-completion.install")
|
||||||
|
@ -21,7 +21,7 @@ pkgver() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname/tools"
|
cd "$srcdir/$pkgname/tools"
|
||||||
python2 table-generator.py > ../pinyin/pinyin_initial.py
|
python table-generator.py > ../pinyin_completion/pinyin_initial.py
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -31,5 +31,5 @@ package() {
|
||||||
cp -r shell "$pkgdir/usr/share/$pkgname/"
|
cp -r shell "$pkgdir/usr/share/$pkgname/"
|
||||||
cp -r tools "$pkgdir/usr/share/$pkgname/"
|
cp -r tools "$pkgdir/usr/share/$pkgname/"
|
||||||
|
|
||||||
python2 setup.py install --root=$pkgdir/ --optimize=1
|
python setup.py install --root=$pkgdir/ --optimize=1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue