summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 223ae367379197b428dad3ddf7f63cda8d24ddbd (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
# Maintainer: ibrokemypie <ibrokemypie@bastardi.net>
pkgname=i3lock-next-git
pkgver=r69.c7634f4
pkgrel=1
pkgdesc="Create a fancy image to use with i3lock."
arch=('i686' 'x86_64')
url="https://github.com/owenthewizard/i3lock-next"
license=('MIT')
depends=(i3lock-color imlib2 bash fontconfig libxrandr)
provides=(i3lock-next)
makedepends=(git)
source=("git+https://github.com/owenthewizard/i3lock-next/")
sha256sums=('SKIP')
_name=i3lock-next

pkgver() {
  cd "$_name"
  ( 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)"
  )
}

build() {
  cd "$_name"
  make DESTDIR="$pkgdir" PREFIX="/usr" LIBDIR="/lib"
}
package() {
  cd "$_name"
  make DESTDIR="$pkgdir" PREFIX="/usr" LIBDIR="/lib" install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}