mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-20 19:45:00 +02:00
⚡️ perf: changes in functions
This commit is contained in:
@@ -1,38 +1,46 @@
|
|||||||
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
||||||
|
|
||||||
pkgname=snigdhaos-system-config
|
pkgname=snigdhaos-system-config
|
||||||
org=Snigdha-OS
|
org="Snigdha-OS"
|
||||||
_pkgname=snigdhaos-system-config
|
_repo_name="snigdhaos-system-config"
|
||||||
_destname1="/etc"
|
|
||||||
_destname2="/usr"
|
|
||||||
_licensedir="/usr/share/snigdhaos/licenses/"
|
|
||||||
pkgver=1
|
pkgver=1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Snigdha OS System Config!"
|
pkgdesc="Snigdha OS System Config"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/$org/$_pkgname"
|
url="https://github.com/$org/$_repo_name"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
depends=()
|
depends=()
|
||||||
conflicts=('snigdhaos-system-config-next')
|
conflicts=('snigdhaos-system-config-next')
|
||||||
backup=('etc/pacman.d/gnupg/gpg.conf' 'etc/X11/xorg.conf.d/30-touchpad.conf')
|
backup=(
|
||||||
provides=("${pkgname}")
|
'etc/pacman.d/gnupg/gpg.conf'
|
||||||
options=( !strip !emptydirs )
|
'etc/X11/xorg.conf.d/30-touchpad.conf'
|
||||||
source=(${pkgname}::"git+https://github.com/${org}/${_pkgname}")
|
)
|
||||||
|
provides=($pkgname)
|
||||||
|
options=('!strip' '!emptydirs')
|
||||||
|
source=("${pkgname}::git+https://github.com/${org}/${_repo_name}")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
install=$pkgname.install
|
install="$pkgname.install"
|
||||||
|
|
||||||
pkgver(){
|
_licensedir="/usr/share/snigdhaos/licenses/$pkgname"
|
||||||
|
_dest_etc="/etc"
|
||||||
|
_dest_usr="/usr"
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -dm755 "$pkgdir/$_licensedir/$_pkgname"
|
# Create license directory and install the license
|
||||||
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir/$_pkgname"
|
install -dm755 "$pkgdir/$_licensedir"
|
||||||
|
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir"
|
||||||
|
|
||||||
install -dm755 "$pkgdir/$_destname1"
|
# Copy files to /etc
|
||||||
cp -r ${srcdir}/${pkgname}/${_destname1} ${pkgdir}
|
install -dm755 "$pkgdir$_dest_etc"
|
||||||
|
cp -r "$srcdir/$pkgname$_dest_etc"/* "$pkgdir$_dest_etc"
|
||||||
|
|
||||||
install -dm755 "$pkgdir$_destname2"
|
# Copy files to /usr
|
||||||
cp -r ${srcdir}/${pkgname}/${_destname2} ${pkgdir}
|
install -dm755 "$pkgdir$_dest_usr"
|
||||||
}
|
cp -r "$srcdir/$pkgname$_dest_usr"/* "$pkgdir$_dest_usr"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user