Created
May 28, 2022 15:03
-
-
Save dualfade/325df241daa43882ba5a7d39eea854f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ly PKGBUILD | |
# See COPYING for license details. | |
# notes -- | |
# sudo systemctl disable lightdm.service | |
# sudo systemctl enable ly.service | |
# sudo systemctl disable getty@tty2.service | |
pkgname=ly | |
pkgver=89.cc5a50f | |
pkgrel=1 | |
pkgdesc='lightweight TUI (ncurses-like) display manager for Linux and BSD.' | |
arch=('x86_64') | |
groups=('blackarch' 'blackarch-misc') | |
url='https://github.com/fairyglade/ly' | |
license=('DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE V2') | |
makedepends=('git' 'gcc' 'make') | |
source=("git+https://github.com/fairyglade/$pkgname.git") | |
sha512sums=('SKIP') | |
_pkgname=_ly | |
pkgver() { | |
cd $pkgname | |
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) | |
} | |
prepare() { | |
mv $pkgname $_pkgname | |
git clone --recurse-submodules https://github.com/nullgemm/ly.git | |
} | |
build() { | |
cd $pkgname | |
make | |
} | |
package() { | |
cd $pkgname | |
make DESTDIR="$pkgdir" install | |
cd "$srcdir/$_pkgname" | |
echo $(pwd) | |
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md | |
install -Dm 644 license.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment