summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc74826147a474d1d16d9fb88d9f53f5c0c3ecbd (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
# Maintainer: Brandon Mittman <brandonmittman at gmail dot com>
# Contributor: Dolores Portalatin <meskarune at gmail dot com>
# Contributor: burntcookie90 <aur at vishnurajeevan dot com>
_gitname=swaylock-fancy
pkgname=swaylock-fancy-git
pkgver=r194.4c328a0
pkgrel=1
pkgdesc="Blurs and pixelates background, adds lock icon and text, for sway."
arch=('any')
url="https://github.com/Big-B/swaylock-fancy"
license=('MIT')
depends=('coreutils' 'awk' 'grep' 'sed' 'bash' 'util-linux' 'imagemagick' 'swaylock' 'grim' 'jq')
optdepends=('wmctrl: minimize windows before locking')
makedepends=('git')
provides=('swaylock-fancy')
source=("git+https://github.com/Big-B/$_gitname.git")
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    # Run the install
    cd "${srcdir}/$_gitname"
    DESTDIR="$pkgdir" make install

    # Have to redirect the prefix to arch's default location
    cd "$pkgdir"/usr/bin
    sed "$_gitname" -i -e "s:^PREFIX=.*:PREFIX=/usr/share/$_gitname:g"
}