summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/command-not-found/PKGBUILD37
-rw-r--r--pcr/command-not-found/command-not-found.install (renamed from pcr/command-not-found/install)4
2 files changed, 19 insertions, 22 deletions
diff --git a/pcr/command-not-found/PKGBUILD b/pcr/command-not-found/PKGBUILD
index 3772895de..cf0784e1a 100644
--- a/pcr/command-not-found/PKGBUILD
+++ b/pcr/command-not-found/PKGBUILD
@@ -1,32 +1,31 @@
-# Maintainer: Aurelien Desbrieres <aurelien@cwb.io>
-# Contributor (Arch): Diogo Leal <estranho@diogoleal.com>
-# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (Arch): Bernhard Landauer <oberon@manjaro.org>
# Contributor (Arch): Matthias Maennich <arch@maennich.net>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=command-not-found
-pkgver=0.4.5
-pkgrel=2
+pkgver=0.6.1
+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' 'mips64el')
-url="http://github.com/metti/command-not-found"
+arch=('i686' 'x86_64')
+url="https://github.com/metti/$pkgname"
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')
+depends=('boost-libs' 'libarchive' 'tdb' 'wget')
+makedepends=('boost' 'cmake' 'git')
+install=$pkgname.install
+source=("$url/archive/v$pkgver.tar.gz")
+sha256sums=('881bde20d00bc1538372b3394beadee0b68a8d4be7d199b1f94e046f47e5d81e')
build() {
- cd "$srcdir/$pkgname-$pkgver"
- cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX="" src
+ cd $pkgname-$pkgver
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="" \
+ src
make
}
package(){
- cd "$srcdir/$pkgname-$pkgver"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
diff --git a/pcr/command-not-found/install b/pcr/command-not-found/command-not-found.install
index 50e601258..a31ac971c 100644
--- a/pcr/command-not-found/install
+++ b/pcr/command-not-found/command-not-found.install
@@ -7,7 +7,5 @@ post_upgrade() {
}
pre_remove() {
- rm -f /var/lib/cnf/*.{db,tbd}
+ rm -rf /var/lib/cnf/*.{db,tbd}
}
-
-# vim:set ts=2 sw=2 et: