diff options
author | morganamilo | 2017-11-22 09:07:27 +0000 |
---|---|---|
committer | morganamilo | 2017-11-22 09:09:59 +0000 |
commit | beb447ab30e048413e49151be0f784dfa0456dd4 (patch) | |
tree | 89ae7edd101da43a9f9b1fe4fefd0439834c2341 | |
download | aur-beb447ab30e048413e49151be0f784dfa0456dd4.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a60ac0b2b3c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = stgl-git + pkgdesc = (ex) simple terminal (OpenGL edition!) + pkgver = r1000.35fd0f5 + pkgrel = 1 + url = https://github.com/bobtwinkles/stgl + arch = x86_64 + license = MIT + makedepends = ncurses + depends = libxft + depends = libxext + depends = xorg-fonts-misc + depends = adobe-source-code-pro-fonts + conflicts = st + source = git+https://github.com/bobtwinkles/stgl + md5sums = SKIP + +pkgname = stgl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5fad35a7ff2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Morgana <morganamilo@gmail.com> + +pkgname=stgl-git +_pkgname=stgl +pkgver='r1000.35fd0f5' +pkgrel=1 +pkgdesc='(ex) simple terminal (OpenGL edition!)' +arch=('x86_64') +license=('MIT') +depends=('libxft' 'libxext' 'xorg-fonts-misc' 'adobe-source-code-pro-fonts') +conflicts=('st') +makedepends=('ncurses') +url="https://github.com/bobtwinkles/stgl" +source=(git+https://github.com/bobtwinkles/${_pkgname}) +md5sums=('SKIP') + +prepare() { + cd $srcdir/$_pkgname + # skip terminfo which conflicts with nsurses + sed -i '/tic /d' Makefile +} + +build() { + cd $srcdir/$_pkgname + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd $srcdir/$_pkgname + make PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" + install -Dm644 README "$pkgdir/usr/share/doc/$_pkgname/README" +} + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} |