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')
|
2022-01-21 01:15:47 +00:00
|
|
|
depends=('bash')
|
2020-09-11 02:09:42 +00:00
|
|
|
makedepends=('git')
|
|
|
|
source=("git+${url}")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
2020-09-11 03:27:28 +00:00
|
|
|
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/"
|
2022-01-21 00:19:23 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|