srcpkgs: remove variables from version

This commit is contained in:
Piotr Wójcik 2021-06-17 21:19:35 +02:00 committed by Piotr
parent bec0f791b7
commit 40eff69af7
28 changed files with 96 additions and 126 deletions

View file

@ -1,10 +1,11 @@
# Template file for 'EmptyEpsilon'
pkgname=EmptyEpsilon
_ver_major=2021
_ver_minor=03
_ver_patch=31
version="${_ver_major}.${_ver_minor}.${_ver_patch}"
version=2021.03.31
revision=1
_ver_major="${version%%.*}"
_ver_minor="${version%.*}"
_ver_minor="${_ver_minor#*.}"
_ver_patch="${version##*.}"
wrksrc="EmptyEpsilon-EE-${version}"
build_style=cmake
configure_args="-DSERIOUS_PROTON_DIR=$XBPS_BUILDDIR/SeriousProton-EE-${version}

View file

@ -1,15 +1,14 @@
# Template file for 'cross-x86_64-w64-mingw32'
pkgname=cross-x86_64-w64-mingw32
version=8.0.0
revision=1
_gcc_version=10.2.0
_binutils_version=2.34
_gmp_version=6.2.0
_mpfr_version=4.1.0
_mpc_version=1.1.0
_isl_version=0.21
_mingw_version=8.0.0
pkgname=cross-x86_64-w64-mingw32
version=$_mingw_version
revision=1
_mingw_version="${version}"
create_wrksrc=yes
hostmakedepends="tar flex perl texinfo"
makedepends="zlib-devel"

View file

@ -1,11 +1,10 @@
# Template file for 'dmraid'
pkgname=dmraid
_distver=1.0.0.rc16
_patchver=3
version="${_distver}.${_patchver}"
version=1.0.0.rc16.3
revision=12
_distver="${version%.*}-${version##*.}"
wrksrc="${pkgname}"
build_wrksrc="${_distver}-${_patchver}/${pkgname}"
build_wrksrc="${_distver}/${pkgname}"
build_style=gnu-configure
configure_args="--enable-led --enable-intel_led --enable-shared_lib"
makedepends="device-mapper-devel"
@ -13,7 +12,7 @@ short_desc="Device mapper RAID interface"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="http://people.redhat.com/~heinzm/sw/dmraid/"
distfiles="${homepage}/src/dmraid-${_distver}-${_patchver}.tar.bz2"
distfiles="${homepage}/src/dmraid-${_distver}.tar.bz2"
checksum=93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
disable_parallel_build=yes
lib32disabled=yes

View file

@ -1,9 +1,9 @@
# Template file for 'ftgl'
pkgname=ftgl
_distver=2.1.3
_distrcver=rc5
version="${_distver}${_distrcver}"
version=2.1.3rc5
revision=8
_distver="${version%rc*}"
_distrcver="rc${version#*rc}"
wrksrc="ftgl-${_distver}~${_distrcver}"
build_style=gnu-configure
configure_args="--disable-static FT2_CONFIG=${XBPS_CROSS_BASE}/usr/bin/freetype-config"

View file

@ -1,11 +1,11 @@
# Template file for 'gcc-multilib'
archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
_majorver=10.2
pkgname=gcc-multilib
version=${_majorver}.1pre1
version=10.2.1pre1
revision=1
_majorver="${version%.*}"
wrksrc=gcc-${version/pre/_pre}
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"

View file

@ -1,21 +1,21 @@
# Template file for 'gcc'
# Revbump libtool when updating gcc, since it hardcodes some internal compiler paths
# which use the version number.
_majorver=10
_minorver=${_majorver}.2
_patchver=${_minorver}.1
_gmp_version=6.2.0
_mpfr_version=4.1.0
_mpc_version=1.1.0
_isl_version=0.21
pkgname=gcc
# we are using a 10-stable git snapshot alpine is using in order
# to get regression fixes not yet incorporate into a stable release
# it should be possible to switch back to stable with 10.3 or 11
version=${_patchver}pre1
wrksrc=gcc-${version/pre/_pre}
version=10.2.1pre1
revision=3
_patchver="${version%pre*}"
_minorver="${_patchver%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.2.0
_mpfr_version=4.1.0
_mpc_version=1.1.0
_isl_version=0.21
wrksrc=gcc-${version/pre/_pre}
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"

View file

@ -1,11 +1,11 @@
# Template file for 'gcc6'
_majorver=6
_minorver=${_majorver}.5
# old isl is necessary
_isl_version=0.16
pkgname=gcc6
version=${_minorver}.0
version=6.5.0
revision=1
_majorver="${version%%.*}"
_minorver="${version%.*}"
wrksrc=gcc-${version}
hostmakedepends="automake libtool perl flex texinfo zip unzip"
makedepends="gmp-devel mpfr-devel libmpc-devel zlib-devel"

View file

@ -1,11 +1,10 @@
# Template file for 'google-chrome'
_chromeVersion=91.0.4472.106
_chromeRevision=1
_channel=stable
pkgname=google-chrome
version="${_chromeVersion}.${_chromeRevision}"
version=91.0.4472.106.1
revision=1
_chromeVersion="${version%.*}"
_chromeRevision="${version##*.}"
_channel=stable
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
homepage="https://www.google.com/chrome/"
license="custom:chrome"

View file

@ -1,9 +1,7 @@
# Template file for 'hfsprogs'
pkgname=hfsprogs
_distver=540.1
_patchver=3
_md5sum=0435afc389b919027b69616ad1b05709
version="${_distver}.linux${_patchver}"
version=540.1.linux3
revision=8
wrksrc="diskdev_cmds-${version}"
hostmakedepends="clang"

View file

@ -1,10 +1,10 @@
# Template file for 'j'
pkgname=j
_vmaj=901
_vmin=f
_vrel=${_vmaj}-release${_vmin:+-}${_vmin}
version=${_vmaj}.${_vmin}
version=901.f
revision=1
_vmaj="${version%.*}"
_vmin="${version#${_vmaj}}"
_vrel=${_vmaj}-release${_vmin:+-}${_vmin#.}
archs="aarch64* armv[67]* i686* x86_64*"
wrksrc="jsource-j${_vrel}"
makedepends="libedit-devel libgomp-devel"
@ -35,7 +35,7 @@ esac
do_configure() {
cp jsrc/jversion-x.h jsrc/jversion.h
vsed -i "/jversion/s@${_vmaj}@&-${_vmin}@;
vsed -i "/jversion/s@${_vmaj}@&-${_vmin#.}@;
/jplatform/s@unknown@${_jpl}@;
/jtype/s@beta@${_jtype}@;
/jbuilder/s@unknown@${_jbuilder}@" \

View file

@ -1,10 +1,8 @@
# Template file for 'libax25'
pkgname=libax25
_distver=0.0.12
_patchver=rc4
version="${_distver}${_patchver}"
version=0.0.12rc4
revision=1
wrksrc="${pkgname}-${_distver}-${_patchver}"
wrksrc="libax25-${version/rc/-rc}"
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="A set of functions making it easier to write hamradio programs"

View file

@ -1,17 +1,16 @@
# Template file for 'libedit'
pkgname=libedit
_datever=20210522
_distver=3.1
version="${_datever}.${_distver}"
version=20210522.3.1
revision=1
wrksrc="${pkgname}-${_datever}-${_distver}"
_distver="${version%%.*}-${version#*.}"
wrksrc="${pkgname}-${_distver}"
build_style=gnu-configure
makedepends="ncurses-devel"
short_desc="Port of the NetBSD Command Line Editor Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.thrysoee.dk/editline/"
distfiles="http://www.thrysoee.dk/editline/libedit-${_datever}-${_distver}.tar.gz"
distfiles="http://www.thrysoee.dk/editline/libedit-${_distver}.tar.gz"
checksum=0220bc2047e927c0c1984ef5f7b4eb2a9469a5b7bf12ba573ca3b23ca02bbb6f
post_install() {

View file

@ -1,18 +1,16 @@
# Template file for 'libpurple-facebook'
pkgname="libpurple-facebook"
_version="0.9.5"
_rev="9ff9acf9fa14"
pkgname=libpurple-facebook
reverts="20160409.66ee77378d82_1 20160125.92885e0456ed_1"
version=${_version}.${_rev}
version=0.9.5.9ff9acf9fa14
revision=1
_distver="${version%.*}-${version##*.}"
wrksrc="purple-facebook-${_distver}"
build_style=gnu-configure
wrksrc=purple-facebook-${_version}-${_rev}
hostmakedepends="pkg-config"
makedepends="libpurple-devel json-glib-devel"
short_desc="A Facebook plugin for libpurple"
short_desc="Facebook plugin for libpurple"
maintainer="John Regan <john@jrjrtech.com>"
license="GPL-2"
license="GPL-2.0-or-later"
homepage="https://github.com/dequis/purple-facebook"
distfiles="https://github.com/dequis/purple-facebook/releases/download/v${_version}-${_rev}/purple-facebook-${_version}-${_rev}.tar.gz"
distfiles="https://github.com/dequis/purple-facebook/releases/download/v${_distver}/purple-facebook-${_distver}.tar.gz"
checksum=7ab652dd0430166465f820e6e72bf6fffe09db936b535c212e571ec1742146dc

View file

@ -1,9 +1,9 @@
# Template file for 'libreadline8'
pkgname=libreadline8
_dist_ver=8.1
_patch_ver=000
version="${_dist_ver}.${_patch_ver}"
version=8.1.000
revision=1
_dist_ver="${version%.*}"
_patch_ver="${version##*.}"
bootstrap=yes
wrksrc="readline-${_dist_ver}"
build_style=gnu-configure

View file

@ -1,10 +1,9 @@
# Template file for 'libtcd'
_distver=2.2.7
_distrev=r2
pkgname=libtcd
version=${_distver}.${_distrev}
version=2.2.7.r2
revision=1
_distver="${version%.*}"
_distrev="${version##*.}"
wrksrc="${pkgname}-${_distver}"
build_style=gnu-configure
short_desc="API for reading and writing Tide Constituent Database (TCD) files"

View file

@ -1,10 +1,9 @@
# Template file for 'lynx'
pkgname=lynx
_distver=2.8.9
_patchver=1
version="${_distver}.${_patchver}"
version=2.8.9.1
revision=5
wrksrc="lynx${_distver}rel.${_patchver}"
_distver="${version%.*}rel.${version##*.}"
wrksrc="lynx${_distver}"
build_style=gnu-configure
configure_args="--enable-widec --with-zlib --with-bzlib --with-ssl --enable-ipv6"
makedepends="zlib-devel bzip2-devel ncurses-devel openssl-devel"
@ -12,7 +11,7 @@ short_desc="A text browser for the World Wide Web"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://lynx.invisible-island.net/"
distfiles="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_distver}rel.${_patchver}.tar.gz"
distfiles="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_distver}.tar.gz"
checksum=a46e4167b8f02c066d2fe2eafcc5603367be0e3fe2e59e9fc4eb016f306afc8e
pre_configure() {

View file

@ -1,15 +1,14 @@
# Template file for 'man-pages-posix'
pkgname=man-pages-posix
_distver=2017
_revver=a
version="${_distver}${_revver}"
version=2017a
revision=5
_distver="${version%?}"
wrksrc="${pkgname}-${_distver}"
short_desc="Manual pages about POSIX systems"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:POSIX-COPYRIGHT"
homepage="https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/"
distfiles="${KERNEL_SITE}/docs/man-pages/man-pages-posix/man-pages-posix-${_distver}-${_revver}.tar.xz"
distfiles="${KERNEL_SITE}/docs/man-pages/man-pages-posix/man-pages-posix-${_distver}-${version#${_distver}}.tar.xz"
checksum=ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3
do_install() {

View file

@ -1,17 +1,15 @@
# Template file for 'mcwm'
pkgname=mcwm
_distver=20130209
_patchver=2
version="${_distver}.${_patchver}"
version=20130209.2
revision=7
wrksrc="${pkgname}-${_distver}-${_patchver}"
wrksrc="${pkgname}-${version//./-}"
build_style=gnu-makefile
makedepends="libxcb-devel xcb-proto xcb-util-devel xcb-util-keysyms-devel xcb-util-wm-devel"
short_desc="A minimalist stacking X window manager based on XCB"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://hack.org/mc/projects/mcwm/"
distfiles="http://hack.org/mc/hacks/${pkgname}/${pkgname}-${_distver}-${_patchver}.tar.bz2"
distfiles="http://hack.org/mc/hacks/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
checksum=2d2f9ced77bc6f90cb9fbdbf790eed97f3be28caefb0de496ac28813aed606be
conflicts="2bwm>=0"

View file

@ -1,8 +1,7 @@
# Template file for 'openjdk10-bootstrap'
_jdk_build=13
_final_jdk_home="usr/lib/jvm/java-10-openjdk"
pkgname=openjdk10-bootstrap
version="10.0.2p${_jdk_build}"
version=10.0.2p13
revision=2
_repo_ver=${version/p/+}
wrksrc="jdk10u-jdk-${_repo_ver}"
@ -20,7 +19,7 @@ configure_args="
--enable-dtrace=no
--with-debug-level=release
--with-version-pre=
--with-version-build=${_jdk_build}
--with-version-build=${version#*p}
--with-boot-jdk=/usr/lib/jvm/java-9-openjdk"
make_build_args="images"
hostmakedepends="pkg-config automake autoconf cpio tar unzip zip ca-certificates

View file

@ -1,12 +1,9 @@
# Template file for 'openjdk11'
pkgname=openjdk11
_java_ver=11
_java_min_ver=0
_java_sec_ver=12
_jdk_update=5
_openjdk_version="openjdk-${_java_ver}"
version="${_java_ver}.${_java_min_ver}.${_java_sec_ver}+${_jdk_update}"
version=11.0.12+5
revision=1
_java_ver="${version%%.*}"
_openjdk_version="openjdk-${_java_ver}"
wrksrc="jdk${_java_ver}u-jdk-${version}"
build_style=gnu-configure
configure_args="
@ -22,7 +19,7 @@ configure_args="
--with-native-debug-symbols=none
--with-version-pre=
--with-version-opt="void-r$revision"
--with-version-build=${_jdk_update}
--with-version-build=${version#*+}
--with-vendor-name="Void"
--with-vendor-url="https://voidlinux.org/"
--with-vendor-bug-url="https://github.com/void-linux/void-packages/issues"

View file

@ -3,12 +3,9 @@
pkgname=openjdk7-bootstrap
# 2.6.19 fails to build: https://github.com/alpinelinux/aports/pull/9813
_icedtea_ver=2.6.18
_java_ver=7
_jdk_update=221
_jdk_build=02
_bootstrap_jdk_home="/usr/lib/jvm/java-1.5-gcj"
_final_jdk_home="/usr/lib/jvm/java-1.7-openjdk"
version="${_java_ver}u${_jdk_update}b${_jdk_build}"
version=7u221b02
revision=3
wrksrc=icedtea-${_icedtea_ver}
build_style=gnu-configure

View file

@ -2,14 +2,14 @@
# TODO: better places for bin and man?
# TODO: make -headless versions
# TODO: config files?
_java_ver=8
_jdk_update=272
_jdk_build=02
_main_ver=${_java_ver}u${_jdk_update}
_final_jdk_home="usr/lib/jvm/java-1.8-openjdk"
pkgname=openjdk8
version="${_java_ver}u${_jdk_update}b${_jdk_build}"
version=8u272b02
revision=1
_jdk_update=272
_jdk_update="${version#*u}"
_jdk_update="${_jdk_update%b*}"
_jdk_build="${version#*b}"
_final_jdk_home="usr/lib/jvm/java-1.8-openjdk"
# we're using aarch64 port repo to get aarch64 JIT; the repo is
# otherwise the same as the normal one, just with aarch64 port added
_repo_ver="aarch64-shenandoah-jdk${version/b/-b}"

View file

@ -1,8 +1,7 @@
# Template file for 'openjdk9-bootstrap'
_jdk_build=12
_final_jdk_home="usr/lib/jvm/java-9-openjdk"
pkgname=openjdk9-bootstrap
version="9.0.4p${_jdk_build}"
version=9.0.4p12
revision=2
_repo_ver=${version/p/+}
wrksrc="jdk9u-jdk-${_repo_ver}"
@ -20,7 +19,7 @@ configure_args="
--enable-dtrace=no
--with-debug-level=release
--with-version-pre=
--with-version-build=${_jdk_build}
--with-version-build=${version#*p}
--with-boot-jdk=/usr/lib/jvm/java-1.8-openjdk"
make_build_args="images"
hostmakedepends="pkg-config automake autoconf cpio tar unzip zip ca-certificates

View file

@ -1,9 +1,9 @@
# Template file for 'pcc'
pkgname=pcc
_snapshot=20190420
_distver=1.1.0
version=${_distver}.${_snapshot}
version=1.1.0.20190420
revision=3
_distver="${version%.*}"
_snapshot="${version##*.}"
archs="i686* x86_64*"
create_wrksrc=yes
configure_args="--enable-tls --enable-native"

View file

@ -1,10 +1,8 @@
# Template file for 'python3-apsw'
pkgname=python3-apsw
_distver=3.32.2
_patchver=r1
version=${_distver}${_patchver}
version=3.32.2r1
revision=3
wrksrc="apsw-${_distver}-${_patchver}"
wrksrc="apsw-${version/r/-r}"
build_style=python3-module
hostmakedepends="python3-devel"
makedepends="python3-devel sqlite-devel"
@ -13,7 +11,7 @@ maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="Zlib"
homepage="https://github.com/rogerbinns/apsw"
changelog="https://raw.githubusercontent.com/rogerbinns/apsw/master/doc/changes.rst"
distfiles="${homepage}/archive/${_distver}-${_patchver}.tar.gz"
distfiles="${homepage}/archive/${version/r/-r}.tar.gz"
checksum=33f3ccfd8a7537dccef2caeb8cc06e26f300f1cf547c22c4e8ec8dcfecb72aa0
pre_check() {

View file

@ -1,8 +1,6 @@
# Template file for 'simutron'
pkgname=simutron
_version=1.0.1
_rev=SR2
version=1.0.1.${_rev}
version=1.0.1.SR2
revision=1
build_wrksrc=build
build_style=qmake
@ -15,7 +13,7 @@ homepage="https://sourceforge.net/projects/simutron/"
nostrip_files="LCD20x4Test.elf"
do_fetch() {
svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc"
svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${version/.SR/-SR}" "$wrksrc"
}
post_extract() {

View file

@ -1,8 +1,6 @@
# Template file for 'tcc'
pkgname=tcc
_distver=0.9.27
_voidver=20191027.1
version=${_distver}.${_voidver}
version=0.9.27.20191027.1
revision=1
_gitrev=a4997bf3d952f904bce824ee3e8f3e12e8524071
wrksrc=tinycc-${_gitrev:0:7}

View file

@ -1,10 +1,8 @@
# Template file for 'x264'
pkgname=x264
_snap_date=20191217
_snap_rev=2245
version="${_snap_date}.${_snap_rev}"
version=20191217.2245
revision=1
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
wrksrc="x264-snapshot-${version//./-}-stable"
build_style=gnu-configure
configure_args="--enable-static --enable-shared"
hostmakedepends="nasm perl"
@ -12,7 +10,7 @@ short_desc="Free library for encoding H264/AVC video streams"
maintainer="DirectorX <void.directorx@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.videolan.org/developers/x264.html"
distfiles="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
distfiles="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${version//./-}-stable.tar.bz2"
checksum=b2495c8f2930167d470994b1ce02b0f4bfb24b3317ba36ba7f112e9809264160
pre_configure() {