mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 18:04:43 +02:00
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
# Maintainer: Michal Tvrznik <emporeor@gmail.com>
|
|
pkgname=emptty
|
|
pkgver=0.14.0
|
|
pkgrel=1
|
|
pkgdesc="Dead simple CLI Display Manager on TTY"
|
|
url="https://github.com/tvrzna/emptty"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="git go linux-pam-dev libx11-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tvrzna/emptty/archive/v$pkgver.tar.gz"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-openrc
|
|
"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
mkdir -p dist/
|
|
go build -o dist/emptty
|
|
}
|
|
|
|
check() {
|
|
LANG=en_US.UTF-8 go test ./...
|
|
}
|
|
|
|
package() {
|
|
# man page
|
|
install -D res/emptty.1 $pkgdir/usr/share/man/man1/emptty.1
|
|
|
|
# PAM file
|
|
install -Dm 644 res/pam-alpine $pkgdir/etc/pam.d/emptty
|
|
|
|
# config file
|
|
install -Dm 644 res/conf $pkgdir/etc/emptty/conf
|
|
|
|
# openrc service unit
|
|
install -Dm 755 res/openrc-service $pkgdir/etc/init.d/emptty
|
|
|
|
# binary
|
|
install -Dm 755 dist/emptty $pkgdir/usr/bin/emptty
|
|
}
|
|
|
|
sha512sums="
|
|
38553e5a1785dede2b38e6d79dad201d02376b6cc10f7dc9952b337870e87c2d76391dc20c5affaa3f441631bfb617c68b13b468bf1217e35c59bf6cb7f98e92 emptty-0.14.0.tar.gz
|
|
"
|