summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 02:30:50 -0500
committerAbuzer Rafey2018-02-26 02:30:50 -0500
commit5186dd32372a9de80193d9b7b8a9dbf79875775c (patch)
tree4c235eaa5045e223fabadbcca018104780ee143c /PKGBUILD
parentdbb686b3c05931a3d5f5eabcf931957ae9ae0a36 (diff)
downloadaur-5186dd32372a9de80193d9b7b8a9dbf79875775c.tar.gz
Add pkgver() to automate version numbers
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b3167407350..8dddb7f11c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Contributor: Isak Karlsson <isak.karlsson@gmail.com>
-# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Maintainer: Abuzer Rafey <arafey@vyvygen.org>
pkgbase=rust-nightly
pkgname=('rust-nightly' 'rust-nightly-doc')
-pkgver=1.25.0.2018.02.22
+pkgver=1.26.0_2018.02.25
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='A safe, concurrent, practical language'
@@ -16,11 +17,18 @@ options=('staticlibs' '!strip' '!emptydirs' '!makeflags')
conflicts=('rust')
provides=('rust')
sha256sums=('SKIP'
- 'SKIP')
-validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
+ 'SKIP')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE')
export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+pkgver() {
+ cd ${srcdir}/rustc-nightly-src
+ ver="$(expr "$(cat version)" : '\(.*\)-nightly')"
+ date="$(expr "$(cat version)" : '.* \(.*\))')"
+ echo "${ver}_${date//\-/.}"
+}
+
build() {
cd rustc-nightly-src
./configure \