diff options
author | Guba Zoltán | 2020-05-19 23:36:45 +0200 |
---|---|---|
committer | Guba Zoltán | 2020-05-19 23:36:45 +0200 |
commit | c9bf946ba6d066e336860e56fff3b0c22881cfae (patch) | |
tree | d65e790c5f185fdf542b68523bd2105c78ea6571 /PKGBUILD | |
download | aur-c9bf946ba6d066e336860e56fff3b0c22881cfae.tar.gz |
Package name is modified from find-cursor.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d004526afff7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Zoltan Guba <zoltan dot guba at gubamm dot hu> +# mksrcinfo +# updpkgsums + +pkgname=find-cursor-git +_pkgname=find-cursor +pkgver=1.6 +pkgrel=9 +pkgdesc="Simple XLib program to highlight the cursor position." +arch=('any') +url="https://github.com/arp242/find-cursor" +license=('MIT') +groups=(system) +depends=(xorg-xrefresh libx11 xorgproto libxdamage libxrender libxext) +makedepends=('git') +provides=('find-cursor-git') +conflicts=('find-cursor') +source=("git+https://github.com/arp242/find-cursor.git") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$_pkgname" + sed -i 's/\/local//g' Makefile + make + mkdir -p "$pkgdir/usr/share/man/man1" + mkdir -p "$pkgdir/usr/share/doc/$_pkgname" + make DESTDIR="$pkgdir" install + cp LICENSE README.markdown "$pkgdir/usr/share/doc/$_pkgname" +} |