mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 14:25:03 +02:00
feat: aur yayyy! (paru >>>)
This commit is contained in:
parent
d6b165ba8b
commit
9eb059410b
@ -90,6 +90,8 @@ make install-service-systemd # systemd
|
|||||||
make install-service-dinit # dinit
|
make install-service-dinit # dinit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> You can skip **most** of this with the [AUR packages](./assets/pkg/aur/) (yes, just AUR for now)
|
||||||
|
|
||||||
# Disabling other DM's with systemd
|
# Disabling other DM's with systemd
|
||||||
You may want to disable your current Display Manager for instance:
|
You may want to disable your current Display Manager for instance:
|
||||||
|
3
assets/pkg/aur/.gitignore
vendored
Normal file
3
assets/pkg/aur/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*/*
|
||||||
|
!*/PKGBUILD
|
||||||
|
!*/.SRCINFO
|
17
assets/pkg/aur/README.md
Normal file
17
assets/pkg/aur/README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# AUR Packages
|
||||||
|
These files are just for reference, I'll manually edit and publish them, at least until I automate it with github actions (like updating version automatically on a release).
|
||||||
|
|
||||||
|
There are three packages that follow standard conventions:
|
||||||
|
* `lidm`: Builds latest release (manually updated per release basis)
|
||||||
|
* `lidm-bin`: Fetches latest release binary (compiled by GitHub Actions, also updated per release)
|
||||||
|
* `lidm-git`: Fetches latest commit and builds it (should be updated automatically)
|
||||||
|
|
||||||
|
> [!ATTENTION]
|
||||||
|
> None of those packages include the service files, I'm considering automatically detecting it on the package function or providing it as separate services (standard practice again).
|
||||||
|
>
|
||||||
|
> Depending on how good these packages go (my first packages :P) I'll make these ones too.
|
||||||
|
|
||||||
|
## Services
|
||||||
|
Summary of what to do to install service files anyways:
|
||||||
|
* systemd: Copy `assets/services/systemd.service` to `/etc/systemd/system/lidm.service` and enable the service (`systemctl enable lidm`)
|
||||||
|
* dinit: Copy `assets/services/dinit` to `/etc/dinit.d/lidm` and enable the service `dinitctl enable lidm`
|
19
assets/pkg/aur/lidm-bin/.SRCINFO
Normal file
19
assets/pkg/aur/lidm-bin/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
pkgbase = lidm-bin
|
||||||
|
pkgdesc = A fully colorful cutomizable TUI display manager made in C. (release binary)
|
||||||
|
pkgver = 0.0.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/javalsai/lidm
|
||||||
|
arch = x86_64
|
||||||
|
license = GPL
|
||||||
|
depends = pam
|
||||||
|
provides = lidm
|
||||||
|
conflicts = lidm
|
||||||
|
conflicts = lidm-git
|
||||||
|
source = lidm::https://github.com/javalsai/lidm/releases/download/0.0.1/lidm-x86_64
|
||||||
|
source = default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/0.0.1/themes/default.ini
|
||||||
|
source = LICENSE::https://raw.githubusercontent.com/javalsai/lidm/0.0.1/LICENSE
|
||||||
|
sha256sums = 4969018d527613729336abd51e37283ce77d7c7a2233434642804b88e550e622
|
||||||
|
sha256sums = 27db9b0cd2da80c0c60dcb13dfad0f9d65e7dddbb7b344b859803b9ac3943cd7
|
||||||
|
sha256sums = 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986
|
||||||
|
|
||||||
|
pkgname = lidm-bin
|
26
assets/pkg/aur/lidm-bin/PKGBUILD
Normal file
26
assets/pkg/aur/lidm-bin/PKGBUILD
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
pkgname=lidm-bin
|
||||||
|
pkgver=0.0.1
|
||||||
|
pkgrel=1
|
||||||
|
depends=('pam')
|
||||||
|
pkgdesc="A fully colorful cutomizable TUI display manager made in C. (release binary)"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/javalsai/lidm"
|
||||||
|
license=('GPL')
|
||||||
|
provides=('lidm')
|
||||||
|
conflicts=('lidm' 'lidm-git')
|
||||||
|
source=(
|
||||||
|
"lidm::$url/releases/download/$pkgver/lidm-$arch"
|
||||||
|
"default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/$pkgver/themes/default.ini"
|
||||||
|
"LICENSE::https://raw.githubusercontent.com/javalsai/lidm/$pkgver/LICENSE"
|
||||||
|
)
|
||||||
|
sha256sums=(
|
||||||
|
'4969018d527613729336abd51e37283ce77d7c7a2233434642804b88e550e622'
|
||||||
|
'27db9b0cd2da80c0c60dcb13dfad0f9d65e7dddbb7b344b859803b9ac3943cd7'
|
||||||
|
'3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986'
|
||||||
|
)
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
install -Dm755 lidm "${pkgdir}/usr/bin/lidm"
|
||||||
|
install -Dm755 default-theme.ini "${pkgdir}/etc/lidm.ini"
|
||||||
|
}
|
17
assets/pkg/aur/lidm-git/.SRCINFO
Normal file
17
assets/pkg/aur/lidm-git/.SRCINFO
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
pkgbase = lidm-git
|
||||||
|
pkgdesc = A fully colorful cutomizable TUI display manager made in C. (last git commit)
|
||||||
|
pkgver = 0.0.1.r0.gd6b165b
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/javalsai/lidm
|
||||||
|
arch = any
|
||||||
|
license = GPL
|
||||||
|
makedepends = git
|
||||||
|
makedepends = make
|
||||||
|
depends = pam
|
||||||
|
provides = lidm
|
||||||
|
conflicts = lidm
|
||||||
|
conflicts = lidm-bin
|
||||||
|
source = lidm-repo::git+https://github.com/javalsai/lidm
|
||||||
|
sha256sums = SKIP
|
||||||
|
|
||||||
|
pkgname = lidm-git
|
31
assets/pkg/aur/lidm-git/PKGBUILD
Normal file
31
assets/pkg/aur/lidm-git/PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
pkgname=lidm-git
|
||||||
|
pkgver=0.0.1.r0.gd6b165b
|
||||||
|
pkgrel=1
|
||||||
|
depends=('pam')
|
||||||
|
makedepends=('git' 'make')
|
||||||
|
pkgdesc="A fully colorful cutomizable TUI display manager made in C. (last git commit)"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/javalsai/lidm"
|
||||||
|
license=('GPL')
|
||||||
|
provides=('lidm')
|
||||||
|
conflicts=('lidm' 'lidm-bin')
|
||||||
|
source=("lidm-repo::git+https://github.com/javalsai/lidm")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd lidm-repo
|
||||||
|
git describe --long --abbrev=7 --tags | \
|
||||||
|
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd lidm-repo
|
||||||
|
make CFLAGS="-O3"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd lidm-repo
|
||||||
|
install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
install -Dm755 lidm "${pkgdir}/usr/bin/lidm"
|
||||||
|
install -Dm755 themes/default.ini "${pkgdir}/etc/lidm.ini"
|
||||||
|
}
|
15
assets/pkg/aur/lidm/.SRCINFO
Normal file
15
assets/pkg/aur/lidm/.SRCINFO
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
pkgbase = lidm
|
||||||
|
pkgdesc = A fully colorful cutomizable TUI display manager made in C. (build latest tag)
|
||||||
|
pkgver = 0.0.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/javalsai/lidm
|
||||||
|
arch = any
|
||||||
|
license = GPL
|
||||||
|
depends = pam
|
||||||
|
provides = lidm
|
||||||
|
conflicts = lidm-bin
|
||||||
|
conflicts = lidm-git
|
||||||
|
source = lidm-repo::git+https://github.com/javalsai/lidm
|
||||||
|
sha256sums = SKIP
|
||||||
|
|
||||||
|
pkgname = lidm
|
24
assets/pkg/aur/lidm/PKGBUILD
Normal file
24
assets/pkg/aur/lidm/PKGBUILD
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
pkgname=lidm
|
||||||
|
pkgver=0.0.1
|
||||||
|
pkgrel=1
|
||||||
|
depends=('pam')
|
||||||
|
pkgdesc="A fully colorful cutomizable TUI display manager made in C. (build latest tag)"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/javalsai/lidm"
|
||||||
|
license=('GPL')
|
||||||
|
provides=('lidm')
|
||||||
|
conflicts=('lidm-bin' 'lidm-git')
|
||||||
|
source=("lidm-repo::git+https://github.com/javalsai/lidm")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd lidm-repo
|
||||||
|
make CFLAGS="-O3"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd lidm-repo
|
||||||
|
install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
install -Dm755 lidm "${pkgdir}/usr/bin/lidm"
|
||||||
|
install -Dm755 themes/default.ini "${pkgdir}/etc/lidm.ini"
|
||||||
|
}
|
12
assets/pkg/aur/make-srcinfo.sh
Executable file
12
assets/pkg/aur/make-srcinfo.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
MYSELF=$(realpath "$0")
|
||||||
|
MYDIR=$(dirname "$MYSELF")
|
||||||
|
|
||||||
|
for pkg in "$MYDIR"/*/; do
|
||||||
|
cd "$pkg"
|
||||||
|
printf "\x1b[1mEntering '%s'\x1b[0m\n" "$pkg"
|
||||||
|
makepkg --printsrcinfo | tee .SRCINFO
|
||||||
|
echo
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user