Skip to content

Commit

Permalink
frexx-cpp-git: add new PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed May 15, 2011
1 parent e87bdb6 commit 1a367ca
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions frexx-cpp-git/PKGBUILD
@@ -0,0 +1,43 @@
# Maintainer: Dave Reisner <d@falcondiny.com>

pkgname=frexx-cpp-git
pkgver=20110509
pkgrel=1
pkgdesc="a plain and simple ANSI C preprocessor"
arch=('i686' 'x86_64')
url="http://daniel.haxx.se/projects/fcpp/"
license=('BSD')
makedepends=('git')
provides=('frexx-cpp')
conflicts=('frexx-cpp')

_gitroot="git://github.com/bagder/fcpp.git"
_gitname="fcpp"

build() {
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
fi

msg "GIT checkout done or server timeout"
msg "Starting make..."

rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"

make
}

package() {
cd "$srcdir/$_gitname-build"

install -Dm755 fcpp "$pkgdir/usr/bin/fcpp"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/frexx-cpp/COPYING"
}

0 comments on commit 1a367ca

Please sign in to comment.