tl-wallpaper/PKGBUILD

30 lines
904 B
Bash
Raw Permalink Normal View History

2020-09-11 02:09:42 +00:00
# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=tl-wallpaper
2022-01-21 06:01:09 +00:00
pkgver=r19.9430f6f
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')
depends=('bash')
2020-09-11 02:09:42 +00:00
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
}