summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77ae4827ff092af3ba4cfcc8446ecd60ccb37f7c (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
# Maintainer: Rohan Verma <hello@rohanverma.net>
pkgname=simplelock
pkgver=r7.85ceea7
pkgrel=1
pkgdesc="Fast and simple wrapper over i3lock with multiple modes. Supports xkcd and unsplash"
arch=('any')
url="https://github.com/rhnvrm/simplelock"
license=('MIT')
groups=()
depends=('bash' 'i3lock')
makedepends=('git')
checkdepends=()
optdepends=()
provides=('simplelock')
conflicts=()
replaces=()
backup=()
options=()
source=("simplelock-git::git+https://github.com/rhnvrm/simplelock.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname-git"
	( set -o pipefail
	git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package() {
	set -e
	cd $srcdir/$pkgname-git
	mkdir -p ~/.config/simplelock
	cp lock.png ~/.config/simplelock/
	cp lockscreen.png ~/.config/simplelock/
	install -D -m755 -t "$pkgdir/usr/bin" "simplelock"
}