templates/ly-git/template
2025-03-04 10:51:53 +01:00

36 lines
1,012 B
Text

# Template file for 'ly'
pkgname=ly-git
version=20241012
revision=1
_commit=e125d8f1aa1544a6a106047c0acd7a7d2e0ff16c
archs="x86_64"
build_style=zig-build
configure_args="installrunit -Dpie"
hostmakedepends="git"
makedepends="pam-devel libxcb-devel"
depends=""
short_desc="Display manager with console UI"
maintainer="Marty Oehme <contact@martyoeh.me>"
license="WTFPL"
homepage="https://github.com/fairyglade/ly"
#changelog=""
distfiles="${homepage}/archive/${_commit}.tar.gz"
checksum=5c33daa89b680ebce6dd37a0edfaa9f68066c4646708bcf020233c6a58d53561
nostrip=yes
do_build() {
DESTDIR="zig-out" zig build -j"${XBPS_MAKEJOBS}" --sysroot "${XBPS_CROSS_BASE}" --search-prefix "${XBPS_CROSS_BASE}/usr" --prefix /usr --global-cache-dir /host/zig --verbose
}
do_install() {
vlicense license.md
vdoc readme.md
vbin zig-out/usr/bin/ly
vmkdir /etc/ly
vinstall res/config.ini 0644 /etc/ly
vinstall res/setup.sh 0755 /etc/ly
vinstall res/pam.d/ly 0644 /etc/pam.d
vcopy res/lang /etc/ly/lang
vsv ly
}