summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLars Norberg2018-09-05 15:53:26 +0200
committerLars Norberg2018-09-05 15:53:26 +0200
commit6cec6108853ec88637c5183a9eea36e275d7cd1d (patch)
tree697abc6572e3906264f83cb8e9bceb776a839446 /PKGBUILD
parentac3772f3a0fee2cd861313fe10a153ff7fcf40a6 (diff)
downloadaur-6cec6108853ec88637c5183a9eea36e275d7cd1d.tar.gz
3.15
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 18 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 280733f77c0..e398002b3ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Maintainer: Lars Norberg < arch-packages at cogwerkz dot org >
pkgname=wine-staging-pba-git
-pkgver=3.14
-pkgrel=2
+pkgver=3.15.r2.gb9ae1089+wine.3.15.r27.gc4131f69d3
+pkgrel=1
_winesrcdir='wine-git'
_stgsrcdir='wine-staging-git'
_pbasrcdir='wine-pba-firerat-git'
@@ -107,10 +107,10 @@ sha256sums=('SKIP'
'9901a5ee619f24662b241672a7358364617227937d5f6d3126f70528ee5111e7'
'c589c1668851cf5973b8e76d9bd6ae3b9cb9e6524df5d9cb90af4ac20d61d152')
provides=(
- "wine=$pkgver"
- "wine-git=$pkgver"
- "wine-staging=$pkgver"
- "wine-wow64=$pkgver"
+ "wine=$( printf '%s' "$pkgver" | sed 's/.*\+wine\.//')"
+ "wine-wow64=$( printf '%s' "$pkgver" | sed 's/.*\+wine\.//')"
+ "wine-git=$( printf '%s' "$pkgver" | sed 's/.*\+wine\.//')"
+ "wine-staging=$(printf '%s' "$pkgver" | sed 's/\+wine.*//')"
)
conflicts=('wine' 'wine-wow64' 'wine-staging')
@@ -177,6 +177,18 @@ prepare() {
}
+pkgver() {
+ cd "${srcdir}/${_stgsrcdir}"
+ local _staging_tag="$(git tag --sort='version:refname' | tail -n1 | sed 's/-/./g;s/^v//;s/\.rc/rc/')"
+ local _staging_version="$(git describe --long --tags \
+ | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//;s/\.rc/rc/' \
+ | sed "s/^latest.release/${_staging_tag}/")"
+ cd "${srcdir}/${_winesrcdir}"
+ local _wine_version="$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//;s/\.rc/rc/')"
+
+ printf '%s+%s' "$_staging_version" "$_wine_version"
+}
+
build() {
cd "${srcdir}"