diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-06 05:56:38 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-06 05:56:38 -0200 |
commit | c57464701eeb39c57d09dfd584bc44a80c45ce28 (patch) | |
tree | 066ac8c5b4b8cf3cf5c52437e47eacd55f5f6343 /pcr/vimprobable2-git/PKGBUILD | |
parent | 71a7c9e21ebd1492ef3205adb6a095aea0b47c4f (diff) |
vimprobable2-git: add new package to [pcr]
Diffstat (limited to 'pcr/vimprobable2-git/PKGBUILD')
-rw-r--r-- | pcr/vimprobable2-git/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/vimprobable2-git/PKGBUILD b/pcr/vimprobable2-git/PKGBUILD new file mode 100644 index 000000000..7d8223303 --- /dev/null +++ b/pcr/vimprobable2-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer (Arch): jason ryan <jasonwryan@gmail.com> +# Contributor (Arch): totoloco <totoloco en gmail> + +pkgname=vimprobable2-git +pkgver=2014.12.26.ga514968 +pkgrel=2 +pkgdesc="Lightweight, keyboard-driven, WebKit based browser with Vim keybinds." +arch=('i686' 'x86_64') +url="http://www.yllr.net/vimprobable/" +license=('MIT') +depends=('libwebkit>=1.1.11' 'gtk2' 'libsoup') +makedepends=('git') +provides=('vimprobable2') +conflicts=('vimprobable2') +_gitname="vimprobable" +_gitbranch="vimprobable2"/ +source=( + "$_gitname::git+http://git.code.sf.net/p/$_gitname/code" + 'config.h' 'keymap.h' + ) +md5sums=('SKIP' + 'e2845958a1ec3f4d77ae4bec87ef2e4d' + '85e971541294c8e354b095b804fe8ac6') + +pkgver() { + cd "$srcdir/${_gitname}" + git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g' +} + +prepare() { + cp {config,keymap}.h "$srcdir/${_gitname}" + cd "$srcdir/${_gitname}" + sed -i 's:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4 javascriptcoregtk-1.0:' Makefile +} + +build() { + cd "$srcdir/${_gitname}" + make +} + +package() { + cd "$srcdir/$_gitname" + make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install + mkdir -p "$pkgdir"/usr/share/licenses/"${_gitbranch}" + chmod 0755 "$pkgdir"/usr/share/licenses/"${_gitbranch}"/ + install -m 644 LICENSE "$pkgdir"/usr/share/licenses/"${_gitbranch}"/LICENSE +} + +# vim:set ts=2 sw=2 et: |