From f027c0710776eed3683e329e31b71eeb4278a3f8 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Thu, 2 May 2024 12:03:45 +0530 Subject: [PATCH] feat(users): add post installation && build script --- snigdhaos-firefox-config/build.sh | 11 +++++++++++ .../snigdhaos-firefox-config.install | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 snigdhaos-firefox-config/build.sh create mode 100644 snigdhaos-firefox-config/snigdhaos-firefox-config.install diff --git a/snigdhaos-firefox-config/build.sh b/snigdhaos-firefox-config/build.sh new file mode 100644 index 00000000..6d6668c4 --- /dev/null +++ b/snigdhaos-firefox-config/build.sh @@ -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 diff --git a/snigdhaos-firefox-config/snigdhaos-firefox-config.install b/snigdhaos-firefox-config/snigdhaos-firefox-config.install new file mode 100644 index 00000000..95950f58 --- /dev/null +++ b/snigdhaos-firefox-config/snigdhaos-firefox-config.install @@ -0,0 +1,7 @@ +post_install() { + echo -e "\n** The files have been installed in /etc/skel/.mozilla/firefox **\n" +} + +post_upgrade() { + post_install +} \ No newline at end of file