summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e3aa8e4c5b45c33ef89b673474db0feb2c6901b (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
# Maintainer: Vincent Ambo <dev@tazj.in>
pkgname=alock-git
pkgver=r91.09d2ad2
pkgrel=2
pkgdesc="Simple transparent screen-lock"
arch=('i686' 'x86_64')
url="https://code.google.com/p/alock/"
license=('MIT')
depends=('libx11' 'pam')
makedepends=('git')
optdepends=('libxcursor' 'libxrender' 'pam')
conflicts=('alock-svn')
source=('git+https://code.google.com/p/alock/')
noextract=()
md5sums=('SKIP')

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

build() {
  cd "$srcdir/alock"
  # upstream bug: Configure ignores --prefix option
  sed -i 's/\/usr\/local/\/usr/g' configure
  ./configure --with-pam
  make
}

package() {
  cd "$srcdir/alock"
  make DESTDIR="$pkgdir/" install
}