diff options
author | Léo Flaventin Hauchecorne | 2018-03-25 00:11:05 +0100 |
---|---|---|
committer | Léo Flaventin Hauchecorne | 2018-03-25 00:11:05 +0100 |
commit | 17379d913fa8b6a436c2d3fd237bf44f727c4fa0 (patch) | |
tree | 28ecd3aeecac222064ffa93b0d53f4719d8a4665 | |
download | aur-clcbrowser-git.tar.gz |
CLCBrowser Back on AUR !
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 64 |
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..42612b519990 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = clcbrowser-git + pkgdesc = Fully Command line and remote controllable web browser + pkgver = 1.2 + pkgrel = 1 + url = https://gitorious.org/clcbrowser/clcbrowser + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + depends = qt5-base + depends = qt5-tools + depends = qt5-webengine + source = clcbrowser::git+https://github.com/hl037/CLCBrowser.git + md5sums = SKIP + +pkgname = clcbrowser-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a867aa8f48b3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Léo Flaventin Hauchecorne <hl037.prog@gmail.com> +pkgname=clcbrowser-git +pkgver=1.2 +pkgrel=1 +pkgdesc="Fully Command line and remote controllable web browser" +arch=('i686' 'x86_64') +url="https://gitorious.org/clcbrowser/clcbrowser" +license=('GPL3') +groups=() +depends=('qt5-base' 'qt5-tools' 'qt5-webengine') +makedepends=('git') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +source=(clcbrowser::git+https://github.com/hl037/CLCBrowser.git) +noextract=() +md5sums=('SKIP') +#_gitroot=https://github.com/hl037/CLCBrowser.git +#_gitname=clcbrowser + + +build() { + if test "$CARCH" == i686 ; + then + SPEC="linux-g++-32" + else + if test "$CARCH" == x86_64 + then + SPEC="linux-g++-64" + else + echo "unknown architecture" + exit 1 + fi + fi + + + + BUILD="$srcdir/build" + rm -rf "$BUILD" + mkdir "$BUILD" + cd "$BUILD" + lrelease-qt5 "$srcdir/clcbrowser/clcbrowser.pro" + qmake-qt5 "$srcdir/clcbrowser/clcbrowser.pro" -r -spec $SPEC + make -w +} + +package() { + BUILD="$srcdir/build" + cd "$BUILD" + install -d "$pkgdir/usr/bin" || return 1 + install -Dm755 clcbrowser "$pkgdir/usr/bin" || return 1 + cd "$srcdir/clcbrowser" + install -d "$pkgdir/usr/share/icons" || return 1 + install -Dm755 clcbrowser.png "$pkgdir/usr/share/icons/clcbrowser.png" || return 1 + cd linux + install -d "$pkgdir/usr/share/applications" || return 1 + install -Dm755 clcbrowser.desktop "$pkgdir/usr/share/applications" || return 1 +} + +# vim:set ts=2 sw=2 et: + |