Skip to content

Instantly share code, notes, and snippets.

@PandorasFox
Last active December 6, 2017 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PandorasFox/aa9a98b607a13c765bfd90126254e490 to your computer and use it in GitHub Desktop.
Save PandorasFox/aa9a98b607a13c765bfd90126254e490 to your computer and use it in GitHub Desktop.
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