summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecaa7bbbd0cfb2bfa2d2d72bf50417cea06409bc (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
# Maintainer: Kat Witten <turtlewit@live.com>
pkgname=sway-launcher-desktop-git
pkgver=r48.474f6fd
pkgrel=1
pkgdesc="A launcher menu made for the Sway window manager made with bash and the amazing fzf."
arch=(x86_64)
url="https://github.com/Biont/sway-launcher-desktop"
license=('GPL')
depends=(sway fzf)
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/Biont/sway-launcher-desktop.git")
md5sums=('SKIP')

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

package() {
	# sway-launcher-desktop.sh installed as /usr/bin/sway-launcher-desktop
	cd "$srcdir/${pkgname%-git}"
	install -d "$pkgdir/usr/bin/"
	install -m 755 "${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
}