updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / command-not-found / PKGBUILD
blobce54ab6f644588fc1a2ee9e2293a460ee7f791cf
1 # Maintainer: Matthias Maennich <arch@maennich.net>
2 pkgname=command-not-found
3 pkgver=0.4.2
4 pkgrel=1
5 pkgdesc="In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh)."
6 arch=('i686' 'x86_64')
7 url="http://github.com/metti/command-not-found"
8 license=('GPL')
9 depends=('boost-libs' 'tdb' 'libarchive')
10 makedepends=('boost' 'tdb' 'cmake' 'git')
11 source=('install')
12 md5sums=('2ea3c216fb0b7f8449f0225ece33210c')
13 install='install'
15 _gitrepo="https://github.com/metti/$pkgname.git"
17 build() {
18     cd $srcdir
19     msg "Connecting to the GIT server ..."
21     if [[ -d $srcdir/$pkgname ]] ; then
22         cd $pkgname
23         git fetch origin
24     else
25         git clone $_gitrepo
26         cd $pkgname
27     fi
29     git checkout v$pkgver
31     msg "GIT checkout done"
33     mkdir -p $srcdir/build
34     cd $srcdir/build
36     cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="" $srcdir/$pkgname/src
37     make
41 package(){
42     cd $srcdir/build
44     make DESTDIR=$pkgdir install