summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristopher Arndt2019-12-21 17:52:19 +0100
committerChristopher Arndt2019-12-21 17:52:19 +0100
commitea00252cd8a6fd3f7cb6ddbcb48faf188836583f (patch)
treed9011f06d03b0c5915741c2afd2eaec16dee9ba8 /PKGBUILD
parenteca93b3fa4b718fcf47f32beeb5ac5d7abaf3c19 (diff)
downloadaur-jumpapp-git.tar.gz
Adopted package
* Added 'xdotool' to depends * Added conflicts with 'jumpapp' * Prefix version number with release version number from Makefile * Install README.md to doc dir * Install LICENSE.txt Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 95417749e43..ad31be2c2f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,32 @@
-# Maintainer: Jonathan Toledo <kry0ster@gmail.com>
+# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
+# Contributor: Jonathan Toledo <kry0ster@gmail.com>
-pkgname=jumpapp-git
-pkgver=r83.1db2658
+_pkgname=jumpapp
+pkgname="${_pkgname}-git"
+pkgver=1.1.r101.4071977
pkgrel=1
pkgdesc="A run-or-raise application switcher for any X11 desktop"
arch=('i686' 'x86_64')
url="https://github.com/mkropat/jumpapp"
license=('MIT')
-depends=('wmctrl')
+depends=('xdotool' 'wmctrl')
makedepends=('git')
-provides=('jumpapp' 'jumpappify-desktop-entry')
-
-source=("$pkgname"::'git+https://github.com/mkropat/jumpapp')
+provides=("${_pkgname}" 'jumpappify-desktop-entry')
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/mkropat/jumpapp")
sha256sums=('SKIP')
+
pkgver() {
- cd "$srcdir/$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/${_pkgname}"
+ local ver=$(grep ^VERSION Makefile | cut -f 2 -d ' ')
+ printf "%s.r%s.%s" "$ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd "$srcdir/$pkgname"
- install -Dm755 jumpapp ${pkgdir}/usr/bin/jumpapp
- install -Dm755 jumpappify-desktop-entry ${pkgdir}/usr/bin/jumpappify-desktop-entry
+ cd "$srcdir/${_pkgname}"
+ install -Dm755 ${_pkgname} -t ${pkgdir}/usr/bin
+ install -Dm755 jumpappify-desktop-entry -t "${pkgdir}/usr/bin"
+ install -Dm755 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"
+ install -Dm755 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}