Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: connman-ncurses 1.0-2

Git Clone URL: https://aur-dev.archlinux.org/connman-ncurses.git (read-only)
Package Base: connman-ncurses
Description: Simple ncurses UI for ConnMan
Upstream URL: https://github.com/eurogiciel-oss/connman-json-client
Keywords: 1.0 connman ncurses UI
Licenses: GPL2
Conflicts: connman-ncurses-git
Submitter: arch
Maintainer: dobo
Last Packager: dobo
Votes: 6
Popularity: 0.515363
First Submitted: 2015-11-04 12:39
Last Updated: 2015-11-23 19:07

Latest Comments

dobo commented on 2015-11-22 12:05

Currently it doesn't compile because it fails to clone git repository. You can use release file from github. Moreover, run-me.sh enables creating debug build. 'any' arch can be used only to create packages which don't provide arch-specific binaries (like ELF files). I've fixed those issues. And ncurses is already satisfied by less (which is in 'base' group). Feel free to use it.

diff --git a/PKGBUILD b/PKGBUILD
index cae828e..0d37fe4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,29 @@
# Submitter: Dmitrij Podabed <dmitrij at podabed dot org>
# Maintainer: Dmitrij Podabed <dmitrij at podabed dot org>
+
pkgname=connman-ncurses
+_pkgname=connman-json-client
pkgver=1.0
pkgrel=1
pkgdesc="Simple ncurses UI for ConnMan"
-arch=('any')
+arch=(i686 x86_64)
url="https://github.com/eurogiciel-oss/connman-json-client"
license=('GPL2')
-depends=('json-c' 'ncurses' 'connman')
-makedepends=('git')
-provides=("$pkgname=$pkgver")
-source=("git://github.com/eurogiciel-oss/connman-json-client/commit/cb0f024e8741b9d5765a1b6fe85c755dfb1515d7.git")
-sha256sums=("SKIP")
-
-_gitroot="connman-json-client"
+depends=('json-c' 'connman')
+source=("https://github.com/eurogiciel-oss/${_pkgname}/archive/v${pkgver}.tar.gz")
+md5sums=('26f23eaa1828e2d7a45fce94e1a06203')

build() {
- cd "$srcdir/$_gitroot"
- ./run-me.sh
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ autoreconf -i
+ # it doesn't compile without --disable-optimization flag
+ ./configure --prefix='/usr' --disable-optimization
+ make
}

package() {
- install -Dm733 "$srcdir/$_gitroot/connman_ncurses" "$pkgdir/usr/bin/$_pkgname"
-}
\ No newline at end of file
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ install -D -m 755 connman_ncurses "${pkgdir}/usr/bin/${pkgname}"
+}