Adjusted PKGBUILD to AUR convention

This commit is contained in:
Maximilian P. Käfer 2021-05-17 21:41:01 +02:00
parent b23a37ec78
commit 0206a52f2a
Signed by: mpk
GPG Key ID: 035869C949377C5C

View File

@ -1,5 +1,6 @@
# Maintainer: Maximilian Käfer <maxi@kske.dev> # Maintainer: Maximilian Käfer <maxi@kske.dev>
pkgname='paperchanger' pkgname='paperchanger-git'
_pkgname='paperchanger'
pkgver=1.0.r4.d3fd498 pkgver=1.0.r4.d3fd498
pkgrel=1 pkgrel=1
pkgdesc="CLI to help change the wallpaper in a more comfortable way." pkgdesc="CLI to help change the wallpaper in a more comfortable way."
@ -22,17 +23,17 @@ md5sums=('SKIP')
validpgpkeys=() validpgpkeys=()
pkgver() { pkgver() {
cd ${pkgname} cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
package() { package() {
cd ${pkgname} cd ${_pkgname}
# rm -rf "${pkgdir}${HOME}/.${pkgname}" # rm -rf "${pkgdir}${HOME}/.${_pkgname}"
# mkdir -p "${pkgdir}${HOME}/.${pkgname}" # mkdir -p "${pkgdir}${HOME}/.${_pkgname}"
# install -Dm755 paperchanger.conf.sh "${pkgdir}/etc/paperchanger.conf.sh" # install -Dm755 paperchanger.conf.sh "${pkgdir}/etc/paperchanger.conf.sh"
# install -Dm755 current_wallpaper.txt "${pkgdir}${HOME}/.${pkgname}/current_wallpaper.txt" # install -Dm755 current_wallpaper.txt "${pkgdir}${HOME}/.${_pkgname}/current_wallpaper.txt"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm755 paperchanger.sh "${pkgdir}/usr/bin/paperchanger" install -Dm755 paperchanger.sh "${pkgdir}/usr/bin/paperchanger"
} }