summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59e9bcba0f01917fd69879728aaaaf076af22890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: éclairevoyant
# Contributor: nullgemm <nullgemm@mailbox.org>

pkgname=ly
pkgver=0.5.3
pkgrel=3
pkgdesc="TUI display manager"
arch=(i686 x86_64 aarch64)
url="https://github.com/fairyglade/$pkgname"
license=('custom:WTFPL')
depends=(pam)
makedepends=(git libxcb)
optdepends=('xorg-xauth: for X server sessions')
conflicts=(python-ly) # TODO prevent this
backup=(etc/$pkgname/{config.ini,wsetup.sh,xsetup.sh})
source=("git+$url.git#tag=v$pkgver"
        "git+https://github.com/nullgemm/argoat.git"
        "git+https://github.com/nullgemm/configator.git"
        "git+https://github.com/nullgemm/dragonfail.git"
        "git+https://github.com/nullgemm/termbox_next.git")
b2sums=('SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP')

prepare() {
	cd $pkgname
	git submodule init
	for _i in argoat configator dragonfail termbox_next; do
		git config submodule.sub/$_i.url "$srcdir/$_i"
	done
	git -c protocol.file.allow=always submodule update
}

build() {
	make -C $pkgname
}

package() {
	cd $pkgname
	make DESTDIR="$pkgdir" install
	install -Dm644 license.md "$pkgdir/usr/share/licenses/$pkgname/WTFPL"
}