diff --git a/srcpkgs/sunpinyin/template b/srcpkgs/sunpinyin/template index 647be4edb4d..65e84f4d794 100644 --- a/srcpkgs/sunpinyin/template +++ b/srcpkgs/sunpinyin/template @@ -1,8 +1,8 @@ # Template file for 'sunpinyin' pkgname=sunpinyin -version=3.0.0rc2 +version=3.0.0.rc2 revision=1 -wrksrc="sunpinyin-${version/rc/-rc}" +wrksrc="sunpinyin-${version/.r/-r}" build_style=scons hostmakedepends="pkg-config python3 perl gettext" makedepends="python3-devel sqlite-devel ibus-devel" @@ -13,7 +13,7 @@ homepage="https://github.com/sunpinyin/sunpinyin" # fcitx has this archive, too _lm_sc=lm_sc.3gm.arpa-20140820.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/$_dict" checksum="6722bd41e58b0a42bf41b7c1cb7707e6adfce810ab35597f938c5df8aa5a0af0 @@ -30,17 +30,13 @@ fi do_configure() { cat <<-EOF >configure.conf PREFIX = '/usr' - LIBDIR = '/usr/lib' + LIBDIR = '/usr/lib${XBPS_TARGET_WORDSIZE}' DATADIR = '/usr/share' + LIBEXECDIR = '/usr/libexec' ENABLE_PLUGINS = True PYTHON = '/usr/bin/python3' EOF - cat <<-EOF >wrapper/ibus/configure.conf - PREFIX = '/usr' - LIBDIR = '/usr/lib' - LIBEXECDIR = '/usr/libexec' - DATADIR = '/usr/share' - EOF + cp configure.conf wrapper/ibus/configure.conf } post_extract() { diff --git a/srcpkgs/sunpinyin/update b/srcpkgs/sunpinyin/update new file mode 100644 index 00000000000..5d812a31117 --- /dev/null +++ b/srcpkgs/sunpinyin/update @@ -0,0 +1,2 @@ +site="https://github.com/sunpinyin/sunpinyin/tags" +pattern="archive/refs/tags/v\K[0-9.relc-]+(?=.tar.gz)"