mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
add a PKGBUILD for installing Arch system files
This commit is contained in:
parent
355b3ea091
commit
3224d11496
10 changed files with 32 additions and 0 deletions
3
system/arch/.gitignore
vendored
Normal file
3
system/arch/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
pkg
|
||||
src
|
||||
*.pkg.tar.xz
|
28
system/arch/PKGBUILD
Normal file
28
system/arch/PKGBUILD
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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 -Dm644 ../../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
_install_files *
|
||||
}
|
||||
|
||||
_install_files() {
|
||||
local path real_path mode; for path in "$@"; do
|
||||
real_path="$(realpath "$path")"
|
||||
mode="$(stat --format "%a" "$real_path")"
|
||||
if [[ -d "$path" ]]; then
|
||||
install --directory --mode "$mode" "$pkgdir/$path"
|
||||
_install_files "$path"/*
|
||||
else
|
||||
install --mode "$mode" "$real_path" "$pkgdir/$path"
|
||||
fi
|
||||
done
|
||||
}
|
1
system/files/etc/consolecolors
Symbolic link
1
system/files/etc/consolecolors
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../colorschemes/out/setvtrgb.txt
|
Loading…
Reference in a new issue