Permalink
Browse files

frexx-cpp-git: add new PKGBUILD

  • Loading branch information...
1 parent e87bdb6 commit 1a367caf768979dee3219d34d1ad2473d045eb6e @falconindy committed May 15, 2011
Showing with 43 additions and 0 deletions.
  1. +43 −0 frexx-cpp-git/PKGBUILD
View
@@ -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.