summaryrefslogtreecommitdiff
path: root/community/slock/PKGBUILD
blob: 678470104ebfb37be9e879b0a115ac41a1145090 (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
# $Id: PKGBUILD 59019 2011-11-20 20:12:50Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sebastian A. Liem <sebastian at liem dot se>

pkgname=slock
pkgver=0.9
# Fix FS#21738
_pkgver="4d3769ac5d02"
pkgrel=6
pkgdesc="A simple screen locker for X"
arch=('i686' 'x86_64')
url="http://tools.suckless.org/slock"
license=('MIT')
depends=('libxext')
#source=("http://dl.suckless.org/tools/$pkgname-$pkgver.tar.gz")
source=("slock-$pkgver.tar.bz2::http://hg.suckless.org/slock/archive/$_pkgver.tar.gz")
md5sums=('7d22a7435324f7c879b6e87054a32309')

build() {
  cd "$srcdir/slock-$_pkgver"
  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}

package() {
  cd "$srcdir/slock-$_pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}