From 4ae5b5ae912844a1a86099cb802d75713c6e222a Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Thu, 25 Apr 2024 17:15:11 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snigdhaos-system-installation/PKGBUILD | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/snigdhaos-system-installation/PKGBUILD b/snigdhaos-system-installation/PKGBUILD index 2c887205..651ec9d8 100644 --- a/snigdhaos-system-installation/PKGBUILD +++ b/snigdhaos-system-installation/PKGBUILD @@ -1 +1,41 @@ # Maintainer: Eshan Roy + +pkgname=snigdhaos-system-installation +org=Snigdha-OS +_pkgname=snigdhaos-system-installation +_destname1="/etc/" +_destname2="/usr/local/bin/" +_destname3="/usr/lib/systemd/system/" +_licensedir="/usr/share/snigdhaos/licenses/" +pkgver=1 +pkgrel=1 +pkgdesc="Installation files for Snigdha OS" +arch=('any') +url="https://github.com/${org}/${pkgname}" +license=('MIT') +makedepends=('git') +depends=() +provides=("${pkgname}") +options=(!strip !emptydirs) +source=(${pkgname}::"git+https://github.com/${org}/${_pkgname}") +sha256sums=('SKIP') +install="${pkgname}.install" + +pkgver() { + # cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -dm755 "$pkgdir/$_licensedir/$_pkgname" + install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir/$_pkgname" + + install -dm755 "$pkgdir$_destname1" + cp -r "$srcdir/$pkgname/$_destname1/"* "$pkgdir/$_destname1" + + install -dm755 "$pkgdir$_destname2" + cp -r "$srcdir/$pkgname/$_destname2/"* "$pkgdir/$_destname2" + + install -dm755 "$pkgdir$_destname3" + cp -r "$srcdir/$pkgname/$_destname3/"* "$pkgdir/$_destname3" +} \ No newline at end of file