mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-19 12:21:42 +02:00
[Fix] Directory Permissions in pkgbuild
This commit is contained in:
18
PKGBUILD
18
PKGBUILD
@@ -1,10 +1,5 @@
|
||||
# Maintainer: Ryan Greenup <ryan.greenup@protonmail.com>
|
||||
|
||||
################################################################################
|
||||
# Don't use this yet, it doesn't quite work, feel free to debug etc. though
|
||||
################################################################################
|
||||
|
||||
|
||||
pkgname=cadmus
|
||||
pkgver=0.2
|
||||
pkgrel=1
|
||||
@@ -54,10 +49,14 @@ package() {
|
||||
# Using the portable philosphy that I've previously settled on
|
||||
################################################################################
|
||||
|
||||
mkdir -p "${pkgdir}/$HOME/.cadmus"
|
||||
mkdir -p "${pkgdir}/$HOME/.cadmus";
|
||||
mkdir -p "${pkgdir}/$HOME/.local/bin"
|
||||
rsync -av ${srcdir}/cadmus/* "${pkgdir}/$HOME/.cadmus/"
|
||||
ln -rs "${pkgdir}/$HOME/.cadmus/bin/cadmus" "${pkgdir}/$HOME/.local/bin"
|
||||
ln -rsf "${pkgdir}/$HOME/.cadmus/bin/cadmus" "${pkgdir}/$HOME/.local/bin"
|
||||
|
||||
chmod 700 "${pkgdir}/$HOME"
|
||||
chmod 755 "${pkgdir}/$HOME/.cadmus"
|
||||
chmod 700 "${pkgdir}/$HOME/.local"
|
||||
|
||||
################################################################################
|
||||
# Not all dependencies are fatal, maybe just a warning would be kinder?
|
||||
@@ -84,6 +83,11 @@ check_for_dependencies () {
|
||||
echo -e "\e[0m \n"
|
||||
echo -e "They are listed in \e[1;34m "${depLog}" \e[0m \n"
|
||||
fi
|
||||
|
||||
echo "Press any key to continue"
|
||||
read -d '' -s -n1
|
||||
|
||||
|
||||
}
|
||||
|
||||
declare -a depArray=(
|
||||
|
Reference in New Issue
Block a user