summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5587816429dc986b3112dfc42006e0110524f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Contributor: Matthias Maennich <arch@maennich.net>

pkgname=command-not-found
pkgver=0.6.0
pkgrel=1
pkgdesc="In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh)."
arch=('i686' 'x86_64')
url="http://github.com/metti/$pkgname"
license=('GPL')
depends=('boost-libs'
         'libarchive'
         'tdb'
         'wget')
makedepends=('boost'
             'cmake'
             'git')
md5sums=('e991b83a0f0a65b4180683cd04c845e5')
install=$pkgname.install
source=("$url/archive/v$pkgver.zip")

build() {
    cd $pkgname-$pkgver
    cmake \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX="" \
      src
    make
}

package(){
    cd $pkgname-$pkgver
    make DESTDIR="$pkgdir" install
}