Date: Friday, March 10, 2017 @ 15:32:49 Author: heftig Revision: 290495
20170310-1 Modified: mobile-broadband-provider-info/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-03-10 15:23:41 UTC (rev 290494) +++ PKGBUILD 2017-03-10 15:32:49 UTC (rev 290495) @@ -2,23 +2,41 @@ # Maintainer: Jan de Groot <j...@archlinxu.org> pkgname=mobile-broadband-provider-info -pkgver=20151214 +pkgver=20170310 pkgrel=1 pkgdesc="Network Management daemon" -arch=('any') -license=('custom') -url="http://git.gnome.org/browse/mobile-broadband-provider-info/" -source=(http://download.gnome.org/sources/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz) -sha256sums=('8ae45d6f10fed9750e259935804c4f40a4372bb119f0504187e4221896b205a4') +arch=(any) +license=(custom) +url="https://git.gnome.org/browse/mobile-broadband-provider-info" +makedepends=(git) +checkdepends=(libxml2) +_commit=befcbbc9867e742ac16415660b0b7521218a530c # tags/20170310^0 +source=("git+https://git.gnome.org/browse/mobile-broadband-provider-info#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + +check() { + cd $pkgname + make check +} + build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd $pkgname ./configure --prefix=/usr make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install - install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd $pkgname + make DESTDIR="$pkgdir" install + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }