summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 567cf5135c65b5e89ecc2f1a60d50c4aa6144b3b (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
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Dirk <spam@0x7be.de>
# Maintainer: Dirk <spam@0x7be.de>

_name='invo'
pkgrel=1

pkgdesc='A barebones tool to get screen width and height on the command line using GTK 3'
url='https://git.0x7be.net/dirk/invo'

arch=('any')
license=('MIT')
depends=('gtk3')
makedepends=('gcc' 'pkgconf')

source=("git+https://git.0x7be.net/dirk/${_name}")
sha256sums=('SKIP')

pkgname="${_name}-git"
pkgbase="${_name}"
pkgver=0b6033c

pkgver() {
    cd "${srcdir}/${_name}"
    echo "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_name}"
    gcc $(pkg-config --cflags gtk+-3.0) -o ${_name} ${_name}.c $(pkg-config --libs gtk+-3.0)
}

package() {
    cd "$srcdir/${_name}"
    install -Dm 755 "${_name}" "${pkgdir}/usr/bin/${_name}"
    install -Dm 644 "${_name}.1" "${pkgdir}/usr/share/man/man1/${_name}.1"
    install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}