dotfiles/system/arch/PKGBUILD

31 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: Dmytro Meleshko <dmytro.meleshko@gmail.com>
pkgname=dmitmel-dotfiles
pkgver=0
pkgrel=1
pkgdesc="dmitmel's dotfiles"
arch=('any')
url="https://github.com/dmitmel/dotfiles"
license=('MIT')
backup=()
package() {
cd "$(dirname "${BASH_SOURCE[0]}")/../files"
install -vDm644 ../../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
_install_my_file -vDm644 etc/initcpio/hooks/bootmsg
_install_my_file -vDm644 etc/initcpio/install/bootmsg
_install_my_file -vDm644 etc/initcpio/hooks/consolecolors
_install_my_file -vDm644 etc/initcpio/install/consolecolors
install -vdm750 "${pkgdir}/etc/sudoers.d"
_install_my_file -vDm640 etc/sudoers.d/99_dmitmel_dotfiles
_install_my_file -vDm644 etc/sysctl.d/50-dmitmel.conf
_install_my_file -vDm644 etc/bootmsg
install -vDm644 ../../colorschemes/out/setvtrgb.txt "${pkgdir}/etc/consolecolors"
_install_my_file -vDm644 etc/locale.conf
install -vDm644 ../../colorschemes/out/xfce4-terminal.theme "${pkgdir}/usr/share/xfce4/terminal/colorschemes/${pkgname}.theme"
}
_install_my_file() {
install "$@" "${pkgdir}/${*: -1}"
}