summaryrefslogblamecommitdiff
path: root/user/i3lock/APKBUILD
blob: 9791fdc02fc08b8c7c715086aef46c460cef6621 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                          
              
              
           

                                  
                              


                          

                                                                         

                                      

           
                      



                                                                           



















                                                              
                                                                                                                                                                  
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: 
pkgname=i3lock
pkgver=2.10
pkgrel=1
pkgdesc="Simple X11 screen locker"
url="https://i3wm.org/i3lock/"
arch="all"
license="MIT"
depends="xkeyboard-config"
makedepends="cairo-dev libev-dev libxkbcommon-dev linux-pam-dev cmd:which
	xcb-util-image-dev"
subpackages="$pkgname-doc"
source="$url/$pkgname-$pkgver.tar.bz2"

prepare() {
	cd "$builddir"
	default_prepare
	# At present, this has no functional difference.
	# But when we start developing our PAM stack into something more
	# mature, this will be important, because i3lock runs unprivileged.
	sed -i -e 's:login:base-auth:g' i3lock.pam
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	./i3lock -v
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -d "$pkgdir/usr/share/man/man1/"
	install -m644 $pkgname.1 "$pkgdir/usr/share/man/man1/"
}

sha512sums="ea865b202668212b58d0b97d0263171847e1bd0c529e2fd3d26c15ef253861b9a8357ff2efaa6a4f342c4d0d1ab03bc00f95f4d4008760ec8e0767ac29195517  i3lock-2.10.tar.bz2"