summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf2ba394c964105487fb891b0a1f29d55f48a535 (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
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=gnome-shell-extension-randomwallpaper-git
_pkgname=RandomWallpaperGnome3
pkgver=2.7.2.r0.g5d0e1ec
pkgrel=1
pkgdesc="Fetch a random wallpaper from an online source and set it as a desktop background.  The desktop background can be updated periodically or manually."
arch=('any')
url="https://github.com/ifl0w/RandomWallpaperGnome3"
license=('MIT')
depends=('gnome-shell')
makedepends=('git' 'zip')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+$url.git)
b2sums=('SKIP')

pkgver() {
  cd "${_pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${_pkgname%-git}"

  ./build.sh
}

package() {
  cd "${_pkgname%-git}"

  uuid=randomwallpaper@iflow.space
  install -d "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
  bsdtar -xvf ${uuid}.zip -C "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
}