blob: d43b73c0e38df338229e10d29c75bce616cf627b (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Matthias Maennich <arch@maennich.net>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
pkgname=command-not-found
pkgver=0.4.4
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')
source=('install')
md5sums=('2ea3c216fb0b7f8449f0225ece33210c')
install='install'
_gitrepo="https://github.com/metti/$pkgname.git"
build() {
cd $srcdir
msg "Connecting to the GIT server ..."
if [[ -d $srcdir/$pkgname ]] ; then
cd $pkgname
git fetch origin
else
git clone $_gitrepo
cd $pkgname
fi
git checkout v$pkgver
msg "GIT checkout done"
mkdir -p $srcdir/build
cd $srcdir/build
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="" $srcdir/$pkgname/src
make
}
package(){
cd $srcdir/build
make DESTDIR=$pkgdir install
}
|