mirror of
https://github.com/endeavouros-team/eos-pkgbuild-setup.git
synced 2026-06-13 01:54:36 +00:00
22 lines
1.1 KiB
Plaintext
Executable File
22 lines
1.1 KiB
Plaintext
Executable File
|
|
# Implements common package() function for PKGBUILD files by
|
|
# standardizing certain file names.
|
|
|
|
Package() {
|
|
local src name
|
|
for src in "${source[@]}" ; do
|
|
name=${src##*/}
|
|
case "$name" in
|
|
*.bash-completion) install -Dm644 $name $pkgdir/usr/share/bash-completion/completions/${name%.*} ;;
|
|
*.conf) install -Dm644 $name $pkgdir/etc/$name ;;
|
|
*.hook) install -Dm644 $name $pkgdir/usr/share/libalpm/hooks/$name ;;
|
|
*.timer) install -Dm644 $name $pkgdir/usr/lib/systemd/system/$name ;;
|
|
*.service) install -Dm644 $name $pkgdir/usr/lib/systemd/system/$name ;;
|
|
autostart-*.desktop) install -Dm644 $name $pkgdir/etc/xdg/autostart/$name ;;
|
|
*.desktop) install -Dm644 $name $pkgdir/usr/share/applications/$name ;;
|
|
*.*) echo "Sorry, $name not supported." ;;
|
|
*) install -Dm755 $name $pkgdir/usr/bin/$name ;;
|
|
esac
|
|
done
|
|
}
|