summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1fed7edffa31720954ca0cb6e3ed4c29bb2c538 (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
# Maintainer: Yuan Zhou <xyyqzy@hotmail.com>

_pkgname=i3lock-fancy-rapid
pkgname=$_pkgname-git
pkgver=r17.c67f09b
pkgrel=1
pkgdesc="A faster implementation of i3lock-fancy"
arch=('x86_64')
url="https://github.com/yvbbrjdr/$_pkgname"
license=('BSD')
depends=('i3lock' 'libx11')
makedepends=('libx11')
source=("$pkgname::git+$url")
sha512sums=('SKIP')

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

build() {
  cd "$pkgname"
  make
}

package() {
  cd "$pkgname"
  install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}