mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-22 04:25:02 +02:00
⏳ @eshanized updated the repository 🎉
This commit is contained in:
42
snigdhaos-welcome/PKGBUILD
Normal file
42
snigdhaos-welcome/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
|
||||||
|
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
||||||
|
|
||||||
|
pkgname=snigdhaos-welcome
|
||||||
|
_pkgname=snigdhaos-welcome
|
||||||
|
org=Snigdha-OS
|
||||||
|
_destname1="/etc/skel/.config/"
|
||||||
|
_destname2="/usr/"
|
||||||
|
_licensedir="/usr/share/snigdhaos/licenses/"
|
||||||
|
pkgver=1
|
||||||
|
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"
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -dm755 ${pkgdir}${_licensedir}${_pkgname}
|
||||||
|
install -m644 ${srcdir}/${_pkgname}/LICENSE ${pkgdir}${_licensedir}${_pkgname}
|
||||||
|
mkdir -p "${pkgdir}${_destname1}"
|
||||||
|
cp -r "${srcdir}/${_pkgname}/${_destname1}/"* "${pkgdir}${_destname1}"
|
||||||
|
mkdir -p "${pkgdir}${_destname2}"
|
||||||
|
cp -r "${srcdir}/${_pkgname}/${_destname2}/"* "${pkgdir}${_destname2}"
|
||||||
|
}
|
7
snigdhaos-welcome/snigdhaos-welcome.install
Normal file
7
snigdhaos-welcome/snigdhaos-welcome.install
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
post_install() {
|
||||||
|
echo -e "\n** The files have been installed in /etc/skel/.config **\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
Reference in New Issue
Block a user