summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e633836b56e293f485865fffe5d51eb9e4bdde7d (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
# Maintainer: Robin Martijn <ik@robinmartijn.nl>

_pkgname=i3lock-fancier-rapid
pkgname=$_pkgname
pkgver=r16.56f7f0a
pkgrel=1
pkgdesc="A cleaner implementation of i3lock-fancy-rapid"
arch=('x86_64')
url="https://github.com/Bowero/$_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)"
}

prepare() {
  cd "$pkgname"
  git submodule init
  git submodule update
}

build() {
  cd "$pkgname"
  make
}

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