This commit is contained in:
Valeria Fadeeva 2023-05-16 22:23:00 +05:00
parent 2a3093bc1f
commit 8e2b1b5d92
6 changed files with 12 additions and 6 deletions

View File

@ -36,7 +36,7 @@ pkgver() {
package() { package() {
# Clone file structure # Clone file structure
install -d "${pkgdir}/etc/skel/" install -d "${pkgdir}/etc/skel/"
cp -r --no-preserve=ownership "${srcdir}/${_gitname}/skel" "${pkgdir}/etc/" cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/skel/" "${pkgdir}/etc/skel/"
# Find all scripts # Find all scripts
readarray -d '' scripts < <(find "${pkgdir}/etc/skel" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) readarray -d '' scripts < <(find "${pkgdir}/etc/skel" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0)

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))" _gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname") pkgname=("melawy-$_gitname")
pkgver=1.3 pkgver=1.5
pkgrel=1 pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)" pkgdesc="$(head -n 2 README.md | tail -n 1)"
arch=('any') arch=('any')
@ -38,7 +38,7 @@ install=ins.install
package() { package() {
# Clone file structure # Clone file structure
install -d "${pkgdir}/home/" install -d "${pkgdir}/home/"
cp -r --no-preserve=ownership "${srcdir}/${_gitname}/liveuser" "${pkgdir}/home/" cp -rT --no-preserve=ownership "${srcdir}/${_gitname}/liveuser/" "${pkgdir}/home/liveuser/"
# Find all scripts # Find all scripts
readarray -d '' scripts < <(find "${pkgdir}/home/liveuser" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0) readarray -d '' scripts < <(find "${pkgdir}/home/liveuser" -type f \( -iname "*.sh" -o -iname "*.bash" \) -print0)

View File

@ -1,4 +1,7 @@
post_install() { post_install() {
chown -chR 1000:1000 /home/liveuser chown -Rh 1000:1000 /home/liveuser
} }
post_upgrade() {
post_install
}

View File

@ -2,3 +2,6 @@ post_install() {
chown -chR 1000:1000 /home/liveuser chown -chR 1000:1000 /home/liveuser
} }
post_upgrade() {
post_install
}

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))" _gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname") pkgname=("melawy-$_gitname")
pkgver=1.7 pkgver=1.8
pkgrel=1 pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)" pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://github.com/Melawy/$_gitname" url="https://github.com/Melawy/$_gitname"

View File

@ -2,7 +2,7 @@
_gitname="$(basename $(pwd))" _gitname="$(basename $(pwd))"
pkgname=("melawy-$_gitname") pkgname=("melawy-$_gitname")
pkgver=1.9 pkgver=1.10
pkgrel=1 pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)" pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://github.com/Melawy/$_gitname" url="https://github.com/Melawy/$_gitname"