# Maintainer: Sergey M pkgname=random-wallpaper pkgver=0.1.1 pkgrel=1 pkgdesc='Changes the desktop wallpaper to random from the site wallhaven.cc' arch=('any') url='https://github.com/tz4678/random-wallpaper' license=('MIT') depends=('jq') source=('git+https://github.com/tz4678/random-wallpaper.git') md5sums=('SKIP') # https://wiki.archlinux.org/index.php/VCS_package_guidelines pkgver() { cd "$pkgname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } package() { cd "$srcdir/$pkgname" install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname install -Dm644 $pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service install -Dm644 $pkgname.timer $pkgdir/usr/lib/systemd/system/$pkgname.timer install -Dm644 $pkgname.conf $pkgdir/etc/conf.d/$pkgname install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" }