summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0aa6d02f60e8281312b9a81b3b2d39b7540a3d5 (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
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: CareF <CareF.lm@gmail.com>
# Contributor: Xavier Peng <png.inside@gmail.com>

pkgname=one-click-bing-wallpaper-git
_name=BingWallpaper
pkgver=r137.e1e4133
pkgrel=1
pkgdesc="A Qt-based program for setting newest Bing Wallpaper, just click the tray icon"
arch=('i686' 'x86_64')
url="https://github.com/ypingcn/BingWallpaper"
makedepends=('qt5-base' 'git')
optdepends=('feh: common WM support' 'xfconf: xfce support' 'glib2: deepin and cinnamon support')
depends=('python-requests' 'dtkwidget' 'libnotify')
license=('GPL3')
source=(git+https://github.com/ypingcn/BingWallpaper.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/"$_name" || exit 1
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
}

build() {
  cd "$srcdir"/"$_name" || exit 1
  ./config.sh
  qmake OneClickBingWallpaper.pro
  make
}

package() {
  cd "$srcdir"/"$_name" || exit 1
  make install INSTALL_ROOT="$pkgdir"
}