summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8fd81fc8422b9cf92438d79ef0ed99eaee5d1c5 (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: CareF <CareF.lm@gmail.com>
# Maintainer: Xavier Peng <png.inside@gmail.com>

pkgname=one-click-bing-wallpaper-git
_name=BingWallpaper
pkgver=r114.a8c2c27
pkgrel=2
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')
optdepends=('feh: common WM support' 'xfconf: xfce support' 'glib2: deepin and cinnamon support')
depends=('python-requests' 'python-argparse' '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"
}