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:
30
PKGBUILD
30
PKGBUILD
@@ -1,9 +1,4 @@
|
|||||||
# Maintainer: Ryan Greenup <ryan.greenup@protonmail.com>
|
# 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
|
pkgname=cadmus
|
||||||
pkgver=0.2
|
pkgver=0.2
|
||||||
@@ -49,15 +44,19 @@ package() {
|
|||||||
# install -Dm755 "$srcdir/cadmus/bin/*" -t "${pkgdir}/usr/bin/"
|
# install -Dm755 "$srcdir/cadmus/bin/*" -t "${pkgdir}/usr/bin/"
|
||||||
# install -Dm644 "${srcdir}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname%-bin}"
|
# install -Dm644 "${srcdir}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname%-bin}"
|
||||||
# install -d "${srcdir}/cadmus/" -Dt "${pkgdir}/$HOME/.cadmus"
|
# install -d "${srcdir}/cadmus/" -Dt "${pkgdir}/$HOME/.cadmus"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Using the portable philosphy that I've previously settled on
|
# 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"
|
mkdir -p "${pkgdir}/$HOME/.local/bin"
|
||||||
rsync -av ${srcdir}/cadmus/* "${pkgdir}/$HOME/.cadmus/"
|
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?
|
# 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 "\e[0m \n"
|
||||||
echo -e "They are listed in \e[1;34m "${depLog}" \e[0m \n"
|
echo -e "They are listed in \e[1;34m "${depLog}" \e[0m \n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Press any key to continue"
|
||||||
|
read -d '' -s -n1
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare -a depArray=(
|
declare -a depArray=(
|
||||||
@@ -136,15 +140,15 @@ check_for_dependencies
|
|||||||
# 1. up in the depends Array
|
# 1. up in the depends Array
|
||||||
# 1. here in the depArray warning
|
# 1. here in the depArray warning
|
||||||
# TODO Should I be installing everything to ~/.cadmus or should I throw all the scripts into /usr/bin?
|
# TODO Should I be installing everything to ~/.cadmus or should I throw all the scripts into /usr/bin?
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# PROS; the portability is convenient and motivates users to look at the scripts
|
# PROS; the portability is convenient and motivates users to look at the scripts
|
||||||
# and investigate them
|
# and investigate them
|
||||||
# PROS; the portability means I don't have to package for other distros
|
# PROS; the portability means I don't have to package for other distros
|
||||||
#
|
#
|
||||||
# CONS; maybe having the individual scripts in /usr/bin would be simpler to install
|
# CONS; maybe having the individual scripts in /usr/bin would be simpler to install
|
||||||
# CONS; maybe having the individual scripts in PATH would be better for users
|
# CONS; maybe having the individual scripts in PATH would be better for users
|
||||||
#
|
#
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user