summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6218c0ec03b4273bf6fd76560de886ed56be30b (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
# Maintainer: unatried <unatried@unatried.com>
pkgname=hdrop-git
pkgver=r133.ae05f71
pkgrel=1
pkgdesc="Emulate tdrop in Hyprland"
arch=('any')
url="https://github.com/Schweber/hdrop"
license=("AGPL-3.0")
provides=("hdrop")
conflicts=("hdrop")
depends=(
	"libnotify"
	"jq"
	"bash"
	"gawk"
	"hyprland"
)
makedepends=(
	"git"
	# "make" # not using the makefile because it doesn't do anything major
    "scdoc"
)
source=("git+https://github.com/Schweber/hdrop.git")
sha256sums=("SKIP")

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

build() {
    cd "$srcdir/hdrop"
    scdoc < hdrop.1.scd > hdrop.1
}

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