summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0ec61efb657c0ca766f6a40124a2eb31582e410 (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
# Maintainer: Justin Dray <justin@dray.be>
# Contributor: Matthias Maennich <arch@maennich.net>
pkgname=command-not-found
pkgver=0.4.5
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/command-not-found"
license=('GPL')
depends=('boost-libs' 'tdb' 'libarchive' 'wget')
makedepends=('boost' 'tdb' 'cmake' 'git')
md5sums=('351ea2f4a1933f408bcb657070c191a4')
install='command-not-found.install'
source=("https://github.com/metti/command-not-found/archive/v${pkgver}.zip")

build() {
    cd "$srcdir/$pkgname-$pkgver"

    cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="" src
    make
}

package(){
    cd "$srcdir/$pkgname-$pkgver"

    make DESTDIR="$pkgdir" install
}