mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-20 19:45: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
|
pkgver=1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Snigdha OS Config File"
|
pkgdesc="Snigdha OS Config File"
|
||||||
arch=(
|
arch=('any')
|
||||||
'any'
|
|
||||||
)
|
|
||||||
url="https://snigdhaos.org/"
|
url="https://snigdhaos.org/"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
makedepends=()
|
makedepends=()
|
||||||
depends=()
|
depends=('systemd') # Add systemd as an example dependency
|
||||||
conflicts=(
|
conflicts=('snigdhaos-bootloader-systemd-dev')
|
||||||
'snigdhaos-bootloader-systemd-dev'
|
|
||||||
)
|
|
||||||
backup=()
|
backup=()
|
||||||
provides=(
|
provides=(
|
||||||
'${pkgname}'
|
"$pkgname"
|
||||||
'${pkgname}-dev'
|
"${pkgname}-dev"
|
||||||
)
|
)
|
||||||
options=(
|
options=(
|
||||||
!strip
|
!strip
|
||||||
!emptydirs
|
!emptydirs
|
||||||
)
|
)
|
||||||
source=("$pkgname.tar.gz")
|
source=("$pkgname.tar.gz")
|
||||||
sha256sums=(
|
sha256sums=('SKIP')
|
||||||
'SKIP'
|
|
||||||
)
|
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
|
|
||||||
pkgver() {
|
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 -dm755 "$pkgdir/$_licensedir/$pkgname"
|
||||||
install -m644 "$srcdir/$pkgname/LICENSE" "$pkdir/$_licensedir/$pkgname"
|
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir/$pkgname"
|
||||||
|
|
||||||
install -dm755 "$pkgdir/$_destination1"
|
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