diff options
-rw-r--r-- | jabberd2-git/PKGBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/jabberd2-git/PKGBUILD b/jabberd2-git/PKGBUILD index fdadb1c65..53b3ab769 100644 --- a/jabberd2-git/PKGBUILD +++ b/jabberd2-git/PKGBUILD @@ -8,8 +8,9 @@ pkgname=jabberd2-git _pkgname=jabberd2 -pkgver=r1173.85812b6 -pkgrel=2 +pkgver=r1175.376e632 +_commit=${pkgver#*.} +pkgrel=1 pkgdesc='Scalable, architecturally sound, and extensible XMPP server' arch=('i686' 'x86_64' 'armv6h') url='http://jabberd2.org/' @@ -20,7 +21,7 @@ optdepends=('sqlite3' 'postgresql-libs') makedepends=('sqlite3' 'postgresql-libs' 'autoconf-archive') install=install source=( - "git+https://github.com/${_pkgname}/${_pkgname}.git" + "${pkgname}::git+https://github.com/${_pkgname}/${_pkgname}.git#commit=${_commit}" 'pam_jabberd' ) sha512sums=('SKIP' @@ -39,12 +40,15 @@ backup=( ) pkgver() { - cd "${srcdir}/${_pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + printf "r%s.%s" "$( + git -C "${srcdir}/${pkgname}" rev-list --count ${_commit} + )" "$( + git -C "${srcdir}/${pkgname}" rev-parse --short ${_commit} + )" } prepare() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/${pkgname}" libtoolize --force aclocal autoheader @@ -53,7 +57,7 @@ prepare() { } build() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/${pkgname}" ./configure \ --prefix=/usr \ @@ -69,7 +73,7 @@ build() { } package() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/${pkgname}" make DESTDIR="${pkgdir}" install |