Skip to content

Instantly share code, notes, and snippets.

@smoak
Created June 28, 2013 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smoak/5888035 to your computer and use it in GitHub Desktop.
Save smoak/5888035 to your computer and use it in GitHub Desktop.
PKGBUILD for cortex-git
# Contributor: Lucas de Vries <lucas@glacicle.org>
# Contribute: Scott Moak <scott.moak@mybrainoncode.com>
pkgname=cortex-git
_gitname=cortex
pkgver=7b29ca0
pkgrel=1
pkgdesc="An ncurses reddit browser and monitor"
license=('WTFPL')
arch=('i686' 'x86_64')
url="http://cortex.glacicle.org/"
depends=('python2' 'xli')
makedepends=('git')
source=('git://glacicle.org/application/cortex')
# Source can change so skip git checksum
md5sums=('SKIP')
pkgver() {
cd $_gitname
git describe --always | sed 's|-|.|g'
}
package() {
cd $_gitname
install -D -m755 "$srcdir/$_gitname/cortex" "$pkgdir/usr/bin/cortex"
install -D -m644 "$srcdir/$_gitname/cortex.1" "$pkgdir/usr/share/man/man1/cortex.1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment