mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-20 11:35:00 +02:00
🐛 fix: typo and enhanced the script
This commit is contained in:
@@ -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/"
|
||||
}
|
||||
|
Reference in New Issue
Block a user