summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 997e237517e3f6cb629056623dd1f40d27190d2e (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
# Maintainer: ZappaBoy <zappaboydev at gmail dot com>

pkgname=dmultiwall-git
_pkgname=dmultiwall
pkgver=v1.0.0
pkgrel=1
pkgdesc="Dynamic multi-monitor wallpaper setter using feh"
arch=('x86_64')
url="https://github.com/ZappaBoy/dmultiwall"
license=('GPL')
depends=('bash' 'feh' 'imagemagick' 'bc')
makedepends=('git')
provides=("dmultiwall=${pkgver}")
conflicts=('dmultiwall')
source=("$_pkgname::git+https://github.com/ZappaBoy/dmultiwall.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"

  # Use commit count + short hash (standard for -git packages)
  printf "r%s.%s" \
    "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_pkgname"

  install -Dm755 dmultiwall "$pkgdir/usr/bin/dmultiwall"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}