summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fd5c4e1d7da8a38f3b427b5881cb6b9133a8f05 (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: Aetf <aetf at unlimitedcodeworks dot xyz>

pkgname=plasma-potd-spotlight
pkgver=1.0.1
pkgrel=1
pkgdesc="A POTD data engine for plasma that fetches high resolution wallpapers from Microsoft Spotlight"
url="https://github.com/Aetf/$pkgname"
arch=('i686' 'x86_64')
license=("BSD")
depends=("kdeplasma-addons")
makedepends=('git' 'extra-cmake-modules')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Aetf/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('SKIP')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  mkdir -p build
}

build() {
  cd $srcdir/$pkgname-$pkgver/build

  cmake \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_INSTALL_LIBDIR=lib \
      -DCMAKE_INSTALL_LIBEXECDIR=lib \
      -DWITH_TESTS=Off \
      ..
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver/build
  make DESTDIR="$pkgdir" install

  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}