diff options
author | Carsten Teibes | 2018-07-25 22:13:03 +0200 |
---|---|---|
committer | Carsten Teibes | 2018-07-25 22:13:03 +0200 |
commit | 16f2a9226f3145e1a358fe0cabf902948b18ea20 (patch) | |
tree | b2d7d88c77a263b02dd086ba6caa08bbcacb9bd2 | |
parent | 99e9ce3b3c9f52fd4eb9963d3b16a9044598516a (diff) | |
download | aur-16f2a9226f3145e1a358fe0cabf902948b18ea20.tar.gz |
[fix] Use 1.0 branch, now that v2 is in development
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 12 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = sdl_sound-hg pkgdesc = A library to decode several popular sound file formats (development version) - pkgver = 1.0.3.r48.719dade41745 + pkgver = 1.0.3.r50.0c4026dd3274 pkgrel = 1 url = http://icculus.org/SDL_sound/ arch = i686 @@ -14,7 +14,7 @@ pkgbase = sdl_sound-hg depends = speex provides = sdl_sound conflicts = sdl_sound - source = sdl_sound::hg+http://hg.icculus.org/icculus/SDL_sound + source = sdl_sound::hg+http://hg.icculus.org/icculus/SDL_sound#branch=stable-1.0 source = sdl_sound-renamed-physfs-export.patch sha256sums = SKIP sha256sums = d7bd96390d9bc877c0204922c7c4666cadfdccc5e6c0cfcf9477d113377f5d10 @@ -3,7 +3,7 @@ # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=sdl_sound-hg -pkgver=1.0.3.r48.719dade41745 +pkgver=1.0.3.r50.0c4026dd3274 pkgrel=1 pkgdesc="A library to decode several popular sound file formats (development version)" arch=('i686' 'x86_64') @@ -13,7 +13,7 @@ depends=('sdl' 'libmodplug' 'libvorbis' 'flac' 'speex') makedepends=('mercurial') conflicts=("${pkgname%-*}") provides=("${pkgname%-*}") -source=(${pkgname%-*}::"hg+http://hg.icculus.org/icculus/SDL_sound" +source=(${pkgname%-*}::"hg+http://hg.icculus.org/icculus/SDL_sound#branch=stable-1.0" "${pkgname%-*}-renamed-physfs-export.patch") sha256sums=('SKIP' 'd7bd96390d9bc877c0204922c7c4666cadfdccc5e6c0cfcf9477d113377f5d10') @@ -21,16 +21,18 @@ sha256sums=('SKIP' pkgver() { cd ${pkgname%-*} - _lasttag=$(hg tags -q | sort -r | grep release- | head -n1) - _commits=$(hg log --template "{node}\n" -r $_lasttag:tip | wc -l) - printf "%s.r%s.%s" "${_lasttag/release-}" "$_commits" "$(hg identify -i)" + _version_major=$(grep SOUND_VER_MAJOR SDL_sound.h | tr -cd [:digit:]) + _version_minor=$(grep SOUND_VER_MINOR SDL_sound.h | tr -cd [:digit:]) + _version_patch=$(grep SOUND_VER_PATCH SDL_sound.h | tr -cd [:digit:]) + _version="$_version_major.$_version_minor.$_version_patch" + _commits=$(hg log --template "{node}\n" -r release-$_version:stable-1.0 | wc -l) + _hash=$(hg identify -i | tr -cd [:alnum:]) + printf "%s.r%s.%s" "${_version}" "$_commits" "$_hash" } prepare() { - cd ${pkgname%-*} - # fix deprecated physfs declaration - patch -Np1 < ../${pkgname%-*}-renamed-physfs-export.patch + patch -d ${pkgname%-*} -Np1 < ${pkgname%-*}-renamed-physfs-export.patch } build() { |