diff options
author | Vincenzo Maffione | 2015-12-10 09:28:50 +0100 |
---|---|---|
committer | Vincenzo Maffione | 2015-12-10 09:28:50 +0100 |
commit | 8ca2adf4305b6bd5119e0f0d1a8bfb75b9ac1d7e (patch) | |
tree | 139b74c834ac847a4bcd88a9de0256121a1281b5 | |
parent | 47ecf66118347fcb11d6e9e51456eb8acd5873ed (diff) | |
download | aur-8ca2adf4305b6bd5119e0f0d1a8bfb75b9ac1d7e.tar.gz |
updated PKGBUILD and .SRCINFO to new git workflow
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 18 insertions, 32 deletions
@@ -1,13 +1,17 @@ +# Generated by mksrcinfo v8 +# Thu Dec 10 08:27:57 UTC 2015 pkgbase = fspcc pkgdesc = An FSP compiler and LTS analysis tool - pkgver = 1.8 - pkgrel = 2 + pkgver = r514.6f4a84a + pkgrel = 1 arch = any license = GPL3 makedepends = git depends = bash optdepends = graphviz: visualizing compiled LTS optdepends = xv: visualizing compiled LTS + source = git+https://github.com/vmaffione/fspc.git + md5sums = SKIP pkgname = fspcc @@ -3,52 +3,34 @@ # Maintainer: Vincenzo Maffione <v.maffione@gmail.com> pkgname=fspcc -pkgver=1.8 -pkgrel=2 +pkgver=r514.6f4a84a +pkgrel=1 pkgdesc="An FSP compiler and LTS analysis tool" arch=('any') -url= license=('GPL3') groups=() depends=('bash') optdepends=('graphviz: visualizing compiled LTS' 'xv: visualizing compiled LTS') makedepends=('git') -provides=() -conflicts=() -replaces=() -backup=() -options=() -install= -source=() -noextract=() -md5sums=() +source=("git+https://github.com/vmaffione/fspc.git") +md5sums=("SKIP") -_gitroot="https://github.com/vmaffione/fspc.git" -_gitname="fspc" +_swname=fspc -build() { - # Download the latest netmap code from the public repository - cd "$srcdir" - msg "Connecting to GIT server...." - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" - cd "$srcdir/$_gitname" - fi - msg "GIT checkout done or server timeout" +pkgver() { + cd "$srcdir/${_swname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} - msg "Starting to build fspc" - cd "$srcdir/$_gitname" +build() { + cd "$srcdir/${_swname}" autoreconf --install ./configure || return 1 make OPTIMIZE=-O2 || return 1 - msg "Build complete" } package() { - cd "$srcdir/$_gitname/src" + cd "$srcdir/${_swname}/src" mkdir -p "$pkgdir/usr/bin" cp fspcc "$pkgdir/usr/bin" cp ltsee "$pkgdir/usr/bin" |