summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 899922d357d40005fee336ba0aa57ae95970fdc8 (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
# Maintainer: Nikhil Singh <nik.singh710@gmail.com>

pkgname=hyprland-scratchpad-git
pkgver=814e260
pkgrel=1
pkgdesc="A helper for scratchpads within Hyprland."
arch=("any")
url="https://github.com/hyprwm/contrib"
license=('MIT')
provides=('scratchpad')
conflicts=('scratchpad')
depends=("hyprland" "jq")
optdepends=('libnotify: Notify users on an action.')
makedepends=("git")
source=("git+https://github.com/hyprwm/contrib.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/contrib/scratchpad"
	git log --pretty="format:%h" -n 1 scratchpad | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "$srcdir/contrib/scratchpad"

	install -Dm 755 scratchpad "$pkgdir/usr/bin/scratchpad"
}