Skip to content

Instantly share code, notes, and snippets.

@J5lx

J5lx/PKGBUILD Secret

Last active Apr 21, 2020
Embed
What would you like to do?
# Maintainer: cylgom <cylgom@gmail.com>
pkgname=ly
pkgver=0.5.0
pkgrel=2
pkgdesc="TUI display manager"
arch=('i686' 'x86_64')
url="https://github.com/cylgom/ly"
license=('custom:WTFPL')
makedepends=('git')
depends=('pam' 'xorg-xauth')
backup=('etc/ly/config.ini'
'etc/ly/wsetup.sh'
'etc/ly/xsetup.sh')
source=("git+https://github.com/cylgom/${pkgname}.git#tag=v${pkgver}"
"git+https://github.com/cylgom/argoat.git"
"git+https://github.com/cylgom/configator.git"
"git+https://github.com/cylgom/ctypes.git"
"git+https://github.com/cylgom/dragonfail.git"
"git+https://github.com/cylgom/termbox_next.git")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "$srcdir/$pkgname"
cp .github .gitmodules
git submodule init
for _i in argoat configator ctypes dragonfail termbox_next; do
git config submodule.sub/${_i}.url $srcdir/${_i}
done
git submodule update
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
find "${pkgdir}/etc" -name '*.ini' -exec chmod -x {} +
chmod -x "${pkgdir}/usr/lib/systemd/system/ly.service"
install -Dm644 license.md "${pkgdir}/usr/share/licenses/${pkgname}/WTFPL"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment