summaryrefslogtreecommitdiff
path: root/pcr/command-not-found/PKGBUILD
blob: 3772895de7582bc788539cdca49b2490330e62dd (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
# Maintainer: Aurelien Desbrieres <aurelien@cwb.io>
# Contributor (Arch): Diogo Leal <estranho@diogoleal.com>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor (Arch): Matthias Maennich <arch@maennich.net>

pkgname=command-not-found
pkgver=0.4.5
pkgrel=2
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' 'mips64el')
url="http://github.com/metti/command-not-found"
license=('GPL3')
depends=('boost-libs' 'tdb' 'libarchive' 'wget')
makedepends=('boost' 'cmake')
install='install'

source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('cceea11367dd1847f08c94212f380ea5')

mksource=("$pkgname-$pkgver::git+https://github.com/metti/$pkgname.git#tag=v${pkgver}")
mkmd5sums=('SKIP')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX="" src
  make
}

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