summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ba0ead01f19de2ad0bcd7f02258acc111004884 (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
38
39
40
41
42
43
44
45
46
# Maintainer: Eloy Garcia Almaden <eloy.garcia.pca@gmail.com>
pkgname=wallpaperdownloader
pkgver=3.3
pkgrel=1
epoch=
pkgdesc="Download, manage and change automatically your favorite wallpapers from the Internet. It supports GNOME Shell, Plasma 5, MATE, Unity, XFCE, Cinnamon, Budgie and Pantheon"
arch=('i686' 'x86_64')
url="https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader"
license=('GPL')
groups=()
depends=('java-runtime>=8' 'xdg-utils')
makedepends=('java-environment>=8' 'git' 'maven')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('git+https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader.git#branch=master')
noextract=()
md5sums=('SKIP')
validpgpkeys=()

build() {
	cd "$pkgname"
        # Compilation and jar package build
	mvn clean package
}

package() {
	cd "$pkgname"
        # Destination
  	install -dm755 "$pkgdir/opt/$pkgname"
        # Complete jar
	install -Dm644 "$srcdir/$pkgname/target/$pkgname.jar" "$pkgdir/opt/$pkgname/jar/$pkgname.jar"

  	# launcher
  	install -Dm755 "$srcdir/$pkgname/aur/$pkgname.sh" "$pkgdir/usr/bin/$pkgname.sh"

  	# .desktop file and icon
  	install -Dm644 "$srcdir/$pkgname/aur/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -Dm644 "$srcdir/$pkgname/aur/$pkgname.svg" "$pkgdir/opt/$pkgname/gui/$pkgname.svg"
}