summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEloy García2017-02-21 21:43:33 +0100
committerEloy García2017-02-21 21:43:33 +0100
commitcc8924a82831f0d4893eb9ffbdecc1ffd0812557 (patch)
tree1ca5291d6de35ad1c8206edd7a25c89ff3fa0d60
downloadaur-cc8924a82831f0d4893eb9ffbdecc1ffd0812557.tar.gz
Uploading WallpaperDownloader package to AUR
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD46
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da71097d9cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = wallpaperdownloader
+ pkgdesc = Download, manage and change automatically your favorite wallpapers from the Internet
+ pkgver = 2.6
+ pkgrel = 1
+ url = https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = maven
+ depends = java-runtime>=8
+ depends = xdg-utils
+ provides = wallpaperdownloader
+ conflicts = wallpaperdownloader
+ replaces = wallpaperdownloader
+ source = git+https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader.git#branch=master
+ md5sums = SKIP
+
+pkgname = wallpaperdownloader
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5ae974ca0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Eloy Garcia Almaden <eloy.garcia.pca@gmail.com>
+pkgname=wallpaperdownloader
+pkgver=2.6
+pkgrel=1
+epoch=
+pkgdesc="Download, manage and change automatically your favorite wallpapers from the Internet"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader"
+license=('GPL')
+groups=()
+depends=('java-runtime>=8' 'xdg-utils')
+makedepends=('git' 'maven')
+checkdepends=()
+optdepends=()
+provides=('wallpaperdownloader')
+conflicts=('wallpaperdownloader')
+replaces=('wallpaperdownloader')
+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.png" "$pkgdir/opt/$pkgname/gui/$pkgname.png"
+}