tl-wallpaper/PKGBUILD

29 lines
887 B
Bash
Raw Normal View History

2020-09-11 02:09:42 +00:00
# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=tl-wallpaper
pkgver=r16.7ec3d15
2020-09-11 02:09:42 +00:00
pkgrel=1
pkgdesc="Thurstylark's collection of wallpapers"
arch=(any)
2021-10-06 01:27:24 +00:00
url="https://git.thurstylark.com/thurstylark/${pkgname}.git/"
2020-09-11 02:09:42 +00:00
license=('GPL')
groups=('tlconfig')
makedepends=('git')
source=("git+${url}")
md5sums=('SKIP')
pkgver() {
printf "r%s.%s" "$(git -C ${srcdir}/${pkgname} rev-list --count HEAD)" "$(git -C ${srcdir}/${pkgname} rev-parse --short HEAD)"
2020-09-11 02:09:42 +00:00
}
package() {
cd ${srcdir}/${pkgname}
install -d "${pkgdir}/usr/share/backgrounds/thurstylark/"
install -m755 "tl-wallpaper-shuf.bash" "${pkgdir}/usr/share/backgrounds/thurstylark/"
for i in $(find . -type f \( -iname \*.jpg -o -iname \*.png \) -printf '%f ' ); do
install -d "${pkgdir}/usr/share/backgrounds/thurstylark/${i%%-*}"
install -m644 "$i" "${pkgdir}/usr/share/backgrounds/thurstylark/${i%%-*}/"
done
2020-09-11 02:09:42 +00:00
}