[arch-commits] CVS update of arch/build/devel/ccache (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Jun 24 17:46:27 EDT 2007


    Date: Sunday, June 24, 2007 @ 17:46:27
  Author: andyrtr
    Path: /home/cvs-arch/arch/build/devel/ccache

   Added: PKGBUILD (1.1)

pkg moved to current


----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)


Index: arch/build/devel/ccache/PKGBUILD
diff -u /dev/null arch/build/devel/ccache/PKGBUILD:1.1
--- /dev/null	Sun Jun 24 17:46:27 2007
+++ arch/build/devel/ccache/PKGBUILD	Sun Jun 24 17:46:27 2007
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD,v 1.1 2007/06/24 21:46:27 andyrtr Exp $
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+# Maintainer: Kevin Piche <kevin at archlinux.org>
+
+pkgname=ccache
+pkgver=2.4
+pkgrel=4
+pkgdesc="ccache is a compiler cache"
+url="http://ccache.samba.org/"
+source=(http://samba.org/ftp/ccache/$pkgname-$pkgver.tar.gz)
+license=(GPL)
+arch=(i686 x86_64)
+depends=(glibc)
+md5sums=('73c1ed1e767c1752dd0f548ec1e66ce7')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  install -Dm 755 ccache $startdir/pkg/usr/bin/ccache
+  install -Dm 644 ccache.1 $startdir/pkg/usr/man/man1/ccache.1
+
+  mkdir -p $startdir/pkg/usr/lib/ccache/bin
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/cc 
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/gcc
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/g++
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/cpp
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/c++
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/${CHOST}-cc
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/${CHOST}-gcc
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/${CHOST}-g++
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/${CHOST}-cpp
+  ln -sf /usr/bin/ccache $startdir/pkg/usr/lib/ccache/bin/${CHOST}-c++
+}




More information about the arch-commits mailing list