blob: 0cad5a3c08bb0f1163aa00a23424ff51240955a0 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Vlad Glagolev <scm(at)vaygr(dot)net>
pkgname=alock
pkgver=2.5.1
pkgrel=1
pkgdesc="simple screen lock application for X server"
arch=('i686' 'x86_64')
url="https://github.com/Arkq/alock"
license=('MIT')
depends=('libx11' 'libxext' 'libxrender' 'libxcursor' 'libxpm' 'imlib2' 'pam' 'libgcrypt')
optdepends=('dunst' 'xorg-xbacklight')
provides=("${pkgname}")
conflicts=('alock-svn' 'alock-git')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Arkq/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('b74cd18ecddce013b38b8fca8687e140d89c1a42cb4a2970a5d864adafb39df8')
prepare() {
cd "${pkgname}-${pkgver}"
autoreconf -fiv
}
build() {
cd "${pkgname}-${pkgver}"
# upstream bug: Configure ignores --prefix option
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-passwd \
--enable-xcursor \
--enable-pam \
--enable-hash \
--enable-xrender \
--enable-imlib2 \
--enable-xpm \
--with-dunst \
--with-xbacklight
make V=0
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install
# for passwd support
chown root:root "${pkgdir}/usr/bin/alock"
chmod 4111 "${pkgdir}/usr/bin/alock"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|