mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
sunpinyin: re-classify rc version
for update-check
This commit is contained in:
parent
e2f5657830
commit
5ef7cba76e
2 changed files with 8 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Template file for 'sunpinyin'
|
# Template file for 'sunpinyin'
|
||||||
pkgname=sunpinyin
|
pkgname=sunpinyin
|
||||||
version=3.0.0rc2
|
version=3.0.0.rc2
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="sunpinyin-${version/rc/-rc}"
|
wrksrc="sunpinyin-${version/.r/-r}"
|
||||||
build_style=scons
|
build_style=scons
|
||||||
hostmakedepends="pkg-config python3 perl gettext"
|
hostmakedepends="pkg-config python3 perl gettext"
|
||||||
makedepends="python3-devel sqlite-devel ibus-devel"
|
makedepends="python3-devel sqlite-devel ibus-devel"
|
||||||
|
@ -13,7 +13,7 @@ homepage="https://github.com/sunpinyin/sunpinyin"
|
||||||
# fcitx has this archive, too
|
# fcitx has this archive, too
|
||||||
_lm_sc=lm_sc.3gm.arpa-20140820.tar.bz2
|
_lm_sc=lm_sc.3gm.arpa-20140820.tar.bz2
|
||||||
_dict=dict.utf8-20131214.tar.bz2
|
_dict=dict.utf8-20131214.tar.bz2
|
||||||
distfiles="https://github.com/sunpinyin/sunpinyin/archive/refs/tags/v${version/rc/-rc}.tar.gz
|
distfiles="https://github.com/sunpinyin/sunpinyin/archive/refs/tags/v${version/.r/-r}.tar.gz
|
||||||
https://downloads.sourceforge.net/project/open-gram/$_lm_sc
|
https://downloads.sourceforge.net/project/open-gram/$_lm_sc
|
||||||
https://downloads.sourceforge.net/project/open-gram/$_dict"
|
https://downloads.sourceforge.net/project/open-gram/$_dict"
|
||||||
checksum="6722bd41e58b0a42bf41b7c1cb7707e6adfce810ab35597f938c5df8aa5a0af0
|
checksum="6722bd41e58b0a42bf41b7c1cb7707e6adfce810ab35597f938c5df8aa5a0af0
|
||||||
|
@ -30,17 +30,13 @@ fi
|
||||||
do_configure() {
|
do_configure() {
|
||||||
cat <<-EOF >configure.conf
|
cat <<-EOF >configure.conf
|
||||||
PREFIX = '/usr'
|
PREFIX = '/usr'
|
||||||
LIBDIR = '/usr/lib'
|
LIBDIR = '/usr/lib${XBPS_TARGET_WORDSIZE}'
|
||||||
DATADIR = '/usr/share'
|
DATADIR = '/usr/share'
|
||||||
|
LIBEXECDIR = '/usr/libexec'
|
||||||
ENABLE_PLUGINS = True
|
ENABLE_PLUGINS = True
|
||||||
PYTHON = '/usr/bin/python3'
|
PYTHON = '/usr/bin/python3'
|
||||||
EOF
|
EOF
|
||||||
cat <<-EOF >wrapper/ibus/configure.conf
|
cp configure.conf wrapper/ibus/configure.conf
|
||||||
PREFIX = '/usr'
|
|
||||||
LIBDIR = '/usr/lib'
|
|
||||||
LIBEXECDIR = '/usr/libexec'
|
|
||||||
DATADIR = '/usr/share'
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
|
2
srcpkgs/sunpinyin/update
Normal file
2
srcpkgs/sunpinyin/update
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
site="https://github.com/sunpinyin/sunpinyin/tags"
|
||||||
|
pattern="archive/refs/tags/v\K[0-9.relc-]+(?=.tar.gz)"
|
Loading…
Add table
Reference in a new issue