summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 100694e532d09c27ee501f4e8947333924232d83 (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
# Maintainer: prime-run <prime-run@github.com>

pkgname=hyde-ipc-bin
_pkgname=hyde-ipc

pkgver=0.1.2
pkgrel=2

pkgdesc="Control Hyprland, query its state, listen for events, and create automated reactions to events."

arch=('x86_64')
url="https://github.com/HyDE-Project/hyde-ipc"

license=('MIT')

depends=(hyprland)
makedepends=(git)

source=("${_pkgname}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-x86_64.tar.gz")

sha256sums=('SKIP')

package() {
  cd "$srcdir/${_pkgname}-${pkgver}-linux-x86_64"

  BINARY="hyde-ipc"

  if [ ! -f "$BINARY" ]; then
    echo "Error: Could not find the binary '$BINARY'"
    find . -type f | sort
    exit 1
  fi

  install -Dm755 "$BINARY" "$pkgdir/usr/bin/$_pkgname"

  if [ -f "LICENSE" ]; then
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
  fi

  if [ -f "README.md" ]; then
    install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/README.md"
  fi
}