diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 10 insertions, 9 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Sun Mar 5 15:29:19 UTC 2017 pkgbase = mphidflash pkgdesc = Flash utility for Microchip PIC microcontrollers with USB HID-Bootloader - pkgver = r24 + pkgver = 20150703 pkgrel = 1 url = https://code.google.com/p/mphidflash arch = i686 @@ -8,7 +10,7 @@ pkgbase = mphidflash license = GPL3 makedepends = svn makedepends = gcc - source = svn+http://mphidflash.googlecode.com/svn/trunk/ + source = mphidflash::git+https://github.com/ApertureLabsLtd/mphidflash md5sums = SKIP pkgname = mphidflash @@ -1,7 +1,7 @@ # Maintainer: Peter Ivanov <ivanovp@gmail.com> pkgname=mphidflash -pkgver=r24 +pkgver=20150703 pkgrel=1 pkgdesc="Flash utility for Microchip PIC microcontrollers with USB HID-Bootloader" arch=("i686" "x86_64") @@ -10,17 +10,16 @@ license=("GPL3") depends=() makedepends=(svn gcc) #options=('!strip') -source=("svn+http://mphidflash.googlecode.com/svn/trunk/") +source=("$pkgname::git+https://github.com/ApertureLabsLtd/mphidflash") md5sums=('SKIP') pkgver() { - cd "$srcdir/trunk" - local ver="$(svnversion)" - printf "r%s" "${ver//[[:alpha:]]}" + cd "$srcdir/$_gitname" + git log -1 --format="%cd" --date=short | tr -d '-' } build() { - cd "$srcdir/trunk" + cd "$srcdir/$pkgname" if [ $CARCH = i686 ]; then make mphidflash32 else @@ -29,7 +28,7 @@ build() { } package() { - cd "$srcdir/trunk/binaries" + cd "$srcdir/$pkgname/binaries" if [ $CARCH = i686 ]; then install -D mphidflash-1.6-linux-32 $pkgdir/usr/bin/mphidflash else |