summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcec6569fa2cd9879ad5fd94b598dffa830b1bfb (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Jean Schoeller <jean@schoeller.fr>
pkgname="iio-hyprland-git"

_pkgname="iio-hyprland"

pkgbase="iio-hyprland"

pkgver=r27.5c79b99

pkgrel=1.2

pkgdesc="Reads iio-proxy-sensor output to enable automatic touchscreen rotation in Hyprland"

arch=("any")

depends=("iio-sensor-proxy")

makedepends=("meson")

licence="custom"

url="https://github.com/JeanSchoeller/iio-hyprland/"
source=(
    "${_pkgname}::git+${url}"
)
sha1sums=(
    SKIP
)

pkgver() {
    cd "${srcdir}/${_pkgname}"

    # Get the version number.
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


prepare() {
    if [ ! -d "${_pkgname}/build" ]; then
    mkdir ${_pkgname}/build
    fi
}

build() {
    cd "$srcdir/$_pkgname"
    meson setup build    
}

package() {
    cd ${_pkgname}/build
    DESTDIR="${pkgdir}" ninja install
}