diff options
author | LinArcX | 2018-12-30 15:35:54 +0330 |
---|---|---|
committer | LinArcX | 2018-12-30 15:35:54 +0330 |
commit | 4eb27f7371e90986fef7b3228e945089b92bc284 (patch) | |
tree | b400778aa7ebafc4b43beec6fe268f2380f4377f /PKGBUILD | |
download | aur-mouse-git.tar.gz |
Init AUR Repo
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0f56d356eba1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: LinArcx <linarcx@gmail.com> + +pkgname="mouse-git" +pkgver=r8.2355019 +pkgrel=1 +pkgdesc="Ncurses-based power manager" +arch=('any') +url="https://github.com/LinArcX/Mouse" +license=('GPL-3.0') +depends=('ncurses') +makedepends=('git' 'gcc') + +source=("${pkgname}::git+https://github.com/LinArcX/Mouse") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${srcdir}/${pkgname}" + g++ -lncurses mouse.cpp -o mouse +} + +package() { + cd "${srcdir}/${pkgname}" + install -Dm644 mouse ${pkgdir}/usr/bin/mouse # what is install? see: man install + chmod +x ${pkgdir}/usr/bin/mouse +} |