summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b81b7f61956baefc7fbdf9d3d284c06074b11472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
_pkgname=hideIt.sh
pkgname=hideit.sh-git
pkgver=r43.b99d6b4
pkgrel=2
pkgdesc="Automagically hide/show a window"
arch=('i686' 'x86_64')
url="https://github.com/tadly/hideIt.sh"
license=('GPL3')
depends=('xdotool' 'xorg-xwininfo' 'xorg-xev')
makedepends=('git')
provides=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/tadly/hideIt.sh.git")
sha256sums=('SKIP')


pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" \
        "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
}