Skip to content

Instantly share code, notes, and snippets.

@PandorasFox

PandorasFox/PKGBUILD

Last active Dec 6, 2017
Embed
What would you like to do?
fixed PKGBUILD for i3lock using autotools
# Maintainer: Brandon Clifford <brandon099 at gmail dot com>
_gitname=i3lock-color
pkgname="$_gitname-git"
pkgver=r415.b0056a5
pkgrel=1
pkgdesc="An improved screenlocker based upon XCB and PAM with color configuration support"
arch=('i686' 'x86_64')
url="https://github.com/PandorasFox/i3lock-color"
license=('MIT')
depends=('xcb-util-image' 'xcb-util-keysyms' 'pam' 'libev' 'libx11' 'cairo')
provides=('i3lock' 'i3lock-color')
conflicts=('i3lock')
makedepends=('git' 'libxkbcommon-x11')
source=("git+https://github.com/PandorasFox/$_gitname.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_gitname}"
}
build() {
cd "${srcdir}/${_gitname}"
# https://bugs.archlinux.org/task/31544
sed -i -e 's:login:system-auth:' pam/i3lock
# easiest way to get this to build as a release is to just tag this
# we'll tag it with `aur-{commit}` basically
git tag -f "aur-$(git rev-parse --short HEAD)"
autoreconf -fi && ./configure --prefix="/usr/" && make -j8
}
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment