From ae0dcec58e17f917563f290b3f30005207f6e154 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 12 Dec 2017 22:52:28 -0500 Subject: pcr/ring: Fiddle with version number scheme --- pcr/ring/PKGBUILD | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'pcr') diff --git a/pcr/ring/PKGBUILD b/pcr/ring/PKGBUILD index dc392aad3..da0b1b885 100644 --- a/pcr/ring/PKGBUILD +++ b/pcr/ring/PKGBUILD @@ -10,7 +10,7 @@ pkgbase=ring pkgname=(ring-daemon ring-lrc ring-client-gnome) pkgdesc="The GNU Ring VoIP system" -pkgver=20171024.1.eadbdeb +_pkgver=20171024.1.eadbdeb _SOURCE_DATE_EPOCH=1508858419 # To figure out what the above value of _SOURCE_DATE_EPOCH should be, @@ -30,10 +30,12 @@ _SOURCE_DATE_EPOCH=1508858419 # cd ring-project # git log production -n1 --format=%ct ${_pkgver##*.} +epoch=1 +pkgver=1.0_${_pkgver} pkgrel=2.3 arch=("i686" "x86_64") url="https://ring.cx/" -source=("http://dl.ring.cx/ring-release/tarballs/${pkgbase}_${pkgver}.tar.gz" +source=("http://dl.ring.cx/ring-release/tarballs/${pkgbase}_${_pkgver}.tar.gz" 'kashmir.tar.gz::https://github.com/Corvusoft/kashmir-dependency/archive/master.tar.gz') noextract=('kashmir.tar.gz') license=('GPL3') @@ -140,6 +142,7 @@ build() { package_ring-daemon() { pkgdesc="The communication daemon of the GNU Ring VoIP system" depends=("${_depends_daemon[@]}") + provides=("ring-daemon=2:$_pkgver") # AUR version scheme cd "$srcdir/ring-project/daemon" make DESTDIR="$pkgdir" install @@ -147,8 +150,8 @@ package_ring-daemon() { package_ring-lrc() { pkgdesc="A client library for the GNU Ring VoIP system" - depends=("${_depends_lrc[@]}" "ring-daemon=$pkgver") - provides=("libringclient=$pkgver") # AUR name + depends=("${_depends_lrc[@]}" "ring-daemon=${epoch:+$epoch:}$pkgver") + provides=("libringclient=2:$_pkgver") # AUR name replaces=("libringclient") # AUR name cd "$srcdir/ring-project/lrc/build" @@ -157,8 +160,8 @@ package_ring-lrc() { package_ring-client-gnome() { pkgdesc="A GTK+3 user interface for the GNU Ring VoIP system" - depends=("${_depends_client_gnome[@]}" "ring-lrc=$pkgver") - provides=("ring-gnome=$pkgver") # AUR name + depends=("${_depends_client_gnome[@]}" "ring-lrc=${epoch:+$epoch:}$pkgver") + provides=("ring-gnome=3:$_pkgver") # AUR name replaces=("ring-gnome") # AUR name cd "$srcdir/ring-project/client-gnome/build" -- cgit v1.2.3