dotfiles/system/arch/PKGBUILD
2020-08-08 11:03:30 +03:00

29 lines
960 B
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_my_file() {
install "$@" "$pkgdir/${*: -1}"
}