mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-12-06 08:03:50 +01:00
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
|
# Contributor: RiO <d3v1l0n@outlook.in>
|
|
|
|
pkgname=snigdhaos-welcome
|
|
_pkgname=snigdhaos-welcome
|
|
org=Snigdha-OS
|
|
_destname1="/etc/skel/.config/"
|
|
_destname2="/usr/"
|
|
_licensedir="/usr/share/snigdhaos/licenses/"
|
|
pkgver=r64.4e7eba2
|
|
pkgrel=1
|
|
pkgdesc="Snigdha OS Welcome App"
|
|
arch=('any')
|
|
url="https://github.com/$org/$pkgname"
|
|
license=('GPL3')
|
|
makedepends=(
|
|
'git'
|
|
)
|
|
depends=(
|
|
'libwnck3'
|
|
'arandr'
|
|
)
|
|
provides=("${pkgname}")
|
|
conflicts=('snigdhaos-welcome-dev')
|
|
install=$pkgname.install
|
|
options=(!strip !emptydirs)
|
|
source=("${pkgname}::git+${url}")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/$pkgname"
|
|
# Retrieve the version based on Git commits
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
package() {
|
|
# Create directories for the license and app data
|
|
install -dm755 ${pkgdir}${_licensedir}${_pkgname}
|
|
install -m644 ${srcdir}/${_pkgname}/LICENSE ${pkgdir}${_licensedir}${_pkgname}
|
|
|
|
# Install configuration files to the user's default skeleton directory
|
|
mkdir -p "${pkgdir}${_destname1}"
|
|
cp -r "${srcdir}/${_pkgname}/${_destname1}/"* "${pkgdir}${_destname1}"
|
|
|
|
# Install the main application files to /usr
|
|
mkdir -p "${pkgdir}${_destname2}"
|
|
cp -r "${srcdir}/${_pkgname}/${_destname2}/"* "${pkgdir}${_destname2}"
|
|
|
|
# Optionally clean up any unnecessary files (e.g., .git, build files, etc.)
|
|
# This ensures the final package only contains the necessary files
|
|
find "$pkgdir" -type f -name "*.git*" -exec rm -f {} \;
|
|
}
|