From 57a64467bb6d91ff883d718826fe31b134009d7a Mon Sep 17 00:00:00 2001 From: angelic-sedition Date: Tue, 12 May 2015 20:06:17 -0400 Subject: [PATCH] Add pkgbuild --- PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e03ddbd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Lit Wakefield + +_pkgname=tdrop +pkgname=tdrop-git +pkgver= +pkgrel=1 +pkgdesc="A WM-Independent dropdown window and terminal creator" +arch=('any') +url="https://github.com/angelic-sedition/tdrop" +license=('Simplified BSD') +depends=('bash' 'xdotool' 'xorg-xwininfo' 'xorg-xprop') +optdepends=('tmux: session starting support' + 'tmuxinator: session starting support' + 'sxhkd: for a tdrop keybinding') +makedepends=('git') +provides=("${_pkgname}") +md5sums=('SKIP') +source=("git://github.com/angelic-sedition/${_pkgname}.git") + +pkgver() { + cd "$srcdir/$_pkgname" + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/$_pkgname" + make PREFIX=/usr DESTDIR="$pkgdir" install +}