feat(users): add post installation && build script

This commit is contained in:
Eshan Roy (Eshanized)
2024-05-02 12:03:45 +05:30
parent bcfb483ae5
commit f027c07107
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
sourcefiles="firefox"
pkgname=$(grep "^pkgname=" PKGBUILD | awk -F"=" '{print $2}')
pkgrel=$(grep "^pkgrel=" PKGBUILD | awk -F"=" '{split($2,a," ");gsub(/"/, "", a[1]);print a[1]}')
arch=$(grep "^arch=" PKGBUILD | awk -F"'" '{print $2}')
tar -zcvf $pkgname.tar.gz $sourcefiles

View File

@@ -0,0 +1,7 @@
post_install() {
echo -e "\n** The files have been installed in /etc/skel/.mozilla/firefox **\n"
}
post_upgrade() {
post_install
}