summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a421ef9901b0c848a4841089a6fc80284c839971 (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
33
34
35
36
37
# Maintainer: Dylan Araps <dyl@tfwno.gf>
pkgname=wal-git
_pkgname=wal
pkgver=r194.7e9917a
pkgrel=1
pkgdesc="Generate and change colorschemes on the fly."
arch=('any')
url="https://github.com/dylanaraps/wal"
license=('MIT')
provides=($_pkgname)
conflicts=($_pkgname)
depends=(
    'bash'
    'imagemagick'
)
optdepends=(
    'bgs: Set wallpaper.'
    'feh: Set wallpaper.'
    'habak: Set wallpaper.'
    'hsetroot: Set wallpaper.'
    'nitrogen: Set wallpaper.'
    'xorg-xprop: Used to detect which DE Wallpaper setter to use.'
)
makedepends=('git')
source=("$pkgname::git+https://github.com/dylanaraps/wal.git")
md5sums=('SKIP')

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

package() {
    cd "$pkgname"
    mkdir -p "${pkgdir}/usr/bin"
    install -D -m755 ./wal "${pkgdir}/usr/bin/$_pkgname"
}