🐛 fix: typo and enhanced the script

This commit is contained in:
eshanized
2024-12-31 04:58:39 +05:30
parent 91d753c180
commit 090f2c3a7c
2 changed files with 12 additions and 17 deletions

View File

@@ -7,39 +7,34 @@ _licensedir="/usr/share/snigdhaos/licenses/"
pkgver=1
pkgrel=1
pkgdesc="Snigdha OS Config File"
arch=(
'any'
)
arch=('any')
url="https://snigdhaos.org/"
license=('MIT')
makedepends=()
depends=()
conflicts=(
'snigdhaos-bootloader-systemd-dev'
)
depends=('systemd') # Add systemd as an example dependency
conflicts=('snigdhaos-bootloader-systemd-dev')
backup=()
provides=(
'${pkgname}'
'${pkgname}-dev'
"$pkgname"
"${pkgname}-dev"
)
options=(
!strip
!emptydirs
)
source=("$pkgname.tar.gz")
sha256sums=(
'SKIP'
)
sha256sums=('SKIP')
install=$pkgname.install
pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf "r%s.%s" "$(git rev-list --count HEAD 2>/dev/null || echo 0)" \
"$(git rev-parse --short HEAD 2>/dev/null || echo unknown)"
}
package(){
package() {
install -dm755 "$pkgdir/$_licensedir/$pkgname"
install -m644 "$srcdir/$pkgname/LICENSE" "$pkdir/$_licensedir/$pkgname"
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir/$pkgname"
install -dm755 "$pkgdir/$_destination1"
cp -r ${srcdir}/${pkgname}/${_destination1}/* ${pkgdir}/${_destination1}
}
cp -r "$srcdir/$pkgname/hooks/"* "$pkgdir/$_destination1/"
}