dotfiles/system/arch/PKGBUILD
2020-10-04 19:50:52 +03:00

30 lines
1.1 KiB
Bash

# 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}"
}