diff options
Diffstat (limited to 'community/emptty/APKBUILD')
-rw-r--r-- | community/emptty/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/emptty/APKBUILD b/community/emptty/APKBUILD new file mode 100644 index 00000000000..2fd8b1c9508 --- /dev/null +++ b/community/emptty/APKBUILD @@ -0,0 +1,51 @@ +# Maintainer: Michal Tvrznik <emporeor@gmail.com> +pkgname=emptty +pkgver=0.12.0 +pkgrel=2 +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 + alpine-pam.patch + " +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 $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=" +06d7b8c0e6e27ec889129eecbb42375bddd6f3ca931ca9728d478f7e065878b24f96d192d83738bacd6d4cd95536307b2d0009dcd9156587107b8131c24f8459 emptty-0.12.0.tar.gz +db640a99d46511dcc6ec9fce74fd2b3877e098f2886839f95b5770bf63a49d77cee1a433963dd92beedcba788aa113a47de98d29d0e5f0edc6626f074c4585b2 alpine-pam.patch +" |