-
-
Save felipe19930/ccffeff49b961073632a37107cee30e3 to your computer and use it in GitHub Desktop.
wallpaperdownloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Eloy Garcia Almaden <eloy.garcia.pca@gmail.com> | |
# Contributor: gbr <gbr@protonmail.com> | |
pkgname=wallpaperdownloader | |
pkgver=4.2 | |
pkgrel=1 | |
pkgdesc='Download, manage and change automatically your favorite wallpapers from the Internet' | |
arch=('any') | |
url='https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader' | |
license=('GPL2') | |
depends=('java-runtime>=8' 'xdg-utils') | |
makedepends=('java-environment>=8' 'maven') | |
source=("$pkgname-$pkgver.tar.gz::$url/get/v$pkgver.tar.gz" | |
wallpaperdownloader.{desktop,sh}) | |
noextract=("${source[@]%%::*}") | |
sha256sums=('76e8d523f6127032d08f33167e9182ae52d5900d98c314a85c7f7aba73592a12' | |
'SKIP' 'SKIP') | |
prepare() { | |
mkdir -p "$pkgname-$pkgver" | |
bsdtar -C "$pkgname-$pkgver" -x -f "$pkgname-$pkgver.tar.gz" --strip-components 1 | |
} | |
build() { | |
cd "$pkgname-$pkgver" | |
mvn clean package -DpackagingPhase=none | |
} | |
package() { | |
cd "$pkgname-$pkgver" | |
install -Dm644 "target/$pkgname.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar" | |
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" | |
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" | |
install -Dm644 "aur/$pkgname.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=WallpaperDownloader | |
GenericName=Wallpaper Downloader | |
Comment=Download, manage and change your wallpapers automatically from the Internet | |
Keywords=wallpaper;gallery;internet;download;downloader;changer;picture;desktop | |
Exec=/usr/bin/wallpaperdownloader | |
Icon=wallpaperdownloader | |
Terminal=false | |
Type=Application | |
Categories=Utility; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if /usr/bin/java -version 2>&1 | grep 'version "1.7' >/dev/null | |
then | |
echo "WallpaperDownloader requires Java 8 or higher" >&2 | |
exit 1 | |
fi | |
# Memory usage is limited to 256 MBytes of RAM | |
exec /usr/bin/java -Xmx256m -Xms128m -jar '/usr/share/java/wallpaperdownloader/wallpaperdownloader.jar' "$@" |
Everything seems fine now. :)
You have my blessing 😄
Great, thanks!!! 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @felipe19930 and no worries at all. Thank you very much for answering and thanks for the explanation. Now, everything is much clearer for me. I think this final version would suit all the requirements when I include modified wallpaperdownloader.desktop and wallpaperdownloader.sh files upstream in the aur directory of my project:
If you give me your OK I update those files in my devel branch to get them ready for my next release.
Best,
Eloy