diff options
author | hayao | 2021-04-13 20:24:01 +0900 |
---|---|---|
committer | hayao | 2021-04-13 20:24:01 +0900 |
commit | 46220e86bf73189de8ab1510d12cf7647146cd84 (patch) | |
tree | 1ad74d31c65b4dc9c5b5b10ef7fede4902d1549a | |
download | aur-46220e86bf73189de8ab1510d12cf7647146cd84.tar.gz |
[add] : Initial commit
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f4cf4459fd61 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = alterlinux-wallpapers + pkgdesc = AlterLinux wallpapers + pkgver = 7.0 + pkgrel = 1 + url = https:/fascode.net + arch = any + source = https://github.com/FascodeNet/alterlinux-wallpapers/archive/refs/tags/v7.0.zip + md5sums = SKIP + +pkgname = alterlinux-wallpapers + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eb2f9a24e649 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer : Yamada Hayao <development@fascode.net> +# Maintainer : lap1sid <development@fascode.net> + +_pkgname="alterlinux-wallpapers" +pkgname="${_pkgname}" +pkgver="7.0" +pkgrel=1 +pkgdesc='AlterLinux wallpapers' +arch=('any') +url='https:/fascode.net' +source=("https://github.com/FascodeNet/alterlinux-wallpapers/archive/refs/tags/v${pkgver}.zip") + +md5sums=("SKIP") + +maindirname="${_pkgname}-${pkgver}" + +package() { + cd "${srcdir}/${maindirname}" + + # Install files + find "${srcdir}/${maindirname}/images" -type f -name "*.png" -print0 | xargs -0 -I{} install -Dm644 --target-directory="${pkgdir}/usr/share/backgrounds/" {} + + find "${srcdir}/${maindirname}/scripts" -type f -print0 | xargs -0 -I{} install -Dm755 --target-directory="${pkgdir}/usr/share/libalpm/scripts/" {} + + find "${srcdir}/${maindirname}/hooks" -type f -name "*.hook" -print0 | xargs -0 -I{} install -Dm644 --target-directory="${pkgdir}/usr/share/libalpm/hooks/" {} + + + # OLD CODE + #install -Dm644 "${srcdir}/alter.png" "${pkgdir}/usr/share/backgrounds/alter.png" + #for image in "${srcdir}"/alter-*.png; do + # install -Dm644 "${srcdir}/$(basename ${image})" "${pkgdir}/usr/share/backgrounds/$(basename ${image})" + #done + + #install -Dm644 "${srcdir}/alter-old.png" "${pkgdir}/usr/share/backgrounds/alter-old.png" + #install -Dm644 "${srcdir}/alter-jiju.png" "${pkgdir}/usr/share/backgrounds/alter-jiju.png" + #install -Dm644 "${srcdir}/alter-nochr.png" "${pkgdir}/usr/share/backgrounds/alter-nochr.png" + + # Install Scripts + #install -Dm755 "${srcdir}/alterlinux-wallpapers-xfce" "${pkgdir}/usr/share/libalpm/scripts/alterlinux-wallpapers-xfce" + #install -Dm755 "${srcdir}/alterlinux-wallpapers-lxde" "${pkgdir}/usr/share/libalpm/scripts/alterlinux-wallpapers-lxde" + + # Install hooks + #local hook + #for hook in "${srcdir}"/*.hook; do + # install -Dm644 "${srcdir}/$(basename ${hook})" "${pkgdir}/usr/share/libalpm/hooks/$(basename ${hook})" + #done +} |