summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ff42978470f1fe8256adbf6fa984c54e17475e8 (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
pkgname='plasma-wallpaper-makethatpape-git'
pkgver=r34.ccd2d6b
pkgrel=1
pkgdesc='Plasma Wallpaper makeThatPape'
arch=('any')
url='https://cgit.kde.org/scratch/mpyne/plasma_wallpaper_asciiquarium.git/about/'
license=('GPL')
depends=('plasma-workspace' 'python' 'python-pillow')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'tar')
provides=("${pkgname}")
source=("git+https://gitlab.com/reightb/makethatpape")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/makethatpape"
  ./package.sh
}

package() {
  mkdir -p $pkgdir/usr/share/plasma/wallpapers
  cd $pkgdir/usr/share/plasma/wallpapers
  tar -xvf $srcdir/makethatpape/makeThatPape*.tar.gz
  mv kde-plugin org.kde.plasma.makethatpape
}