blob: 6a5e71491c725cd6e75c26e30e5c4f1a6209f8bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Firstp1ck <al.leuzi@hotmail.com>
pkgname="hyprland-simple-setup-git"
pkgver="0.4.0"
pkgrel=2
pkgdesc="Setup Hyprland the simple way. (Swiss/German Edition)"
arch=('any')
url="https://github.com/Firstp1ck/Hyprland-Simple-Setup.git"
license=('GPL3')
makedepends=('git')
depends=('git' 'sudo'
'bash'
'base-devel'
'xdg-user-dirs')
source=("$pkgname::git+https://github.com/Firstp1ck/Hyprland-Simple-Setup.git")
sha256sums=('SKIP')
package() {
cd "$pkgname"
# Install all files to /usr/share/$pkgname
install -dm755 "$pkgdir/usr/share/$pkgname"
cp -a . "$pkgdir/usr/share/$pkgname/"
# Find and install setup.sh
if [ -f "setup.sh" ]; then
# If setup.sh is in root directory
install -Dm755 "setup.sh" "$pkgdir/usr/bin/hyprland-simple-setup-git"
else
# Look in subdirectories
for dir in */; do
if [ -f "${dir}setup.sh" ]; then
install -Dm755 "${dir}setup.sh" "$pkgdir/usr/bin/hyprland-simple-setup-git"
break
fi
done
fi
}
post_install() {
echo "==> Run 'hyprland-simple-setup-git' to start the Hyprland setup."
}
|