Skip to content

Instantly share code, notes, and snippets.

@octomike octomike/PKGBUILD
Created Jun 4, 2017

Embed
What would you like to do?
i3lock-fancy-git
# Maintainer: Dolores Portalatin <meskarune at gmail dot com>
# Contributor: burntcookie90 <aur at vishnurajeevan dot com>
_gitname=i3lock-fancy
pkgname=i3lock-fancy-git
pkgver=r126.765a37f
pkgrel=1
pkgdesc="i3lock-color script: blurs background, adds lock icon and text, offers dark/light background detection."
arch=('i686' 'x86_64')
url="https://github.com/meskarune/i3lock-fancy"
license=('MIT')
depends=('coreutils' 'awk' 'bash' 'util-linux' 'imagemagick' 'i3lock')
optdepends=('wmctrl: minimize windows before locking'
'scrot: alternative screenshot creator'
'maim: alternative screenshot creator'
'gnome-screenshot: alternative screenshot creator')
makedepends=('git')
provides=('i3lock-fancy')
source=("git+https://github.com/meskarune/$_gitname.git")
md5sums=('SKIP')
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/$_gitname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
install -dm755 "$pkgdir/usr/share/$_gitname/icons"
install -m644 -t "$pkgdir/usr/share/$_gitname/icons" icons/*
install -dm755 "$pkgdir/usr/bin"
install -Dm755 lock "$pkgdir/usr/share/$_gitname/"
ln -s "/usr/share/$_gitname/lock" "$pkgdir/usr/bin/i3lock-fancy"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.