-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
36 lines (31 loc) · 936 Bytes
/
template
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
# Template file for 'glirc'
pkgname=glirc
version=2.39.0.1
revision=2
hostmakedepends="cabal-install"
makedepends="ncurses-devel openssl-devel"
short_desc="Console IRC client written in Haskell"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/glguy/irc-core"
distfiles="https://github.com/glguy/irc-core/archive/refs/tags/v${version}.tar.gz"
checksum=16bfe9c8df273fb074ce1da91964131318934a6d568be5271c350548eeb1a6af
nocross="cabal does not support cross compilation"
nopie=yes # ghc is currently built without PIE support
_cabal_opts="-g"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
_cabal_opts+=" --ghc-option -latomic"
fi
if [ "$XBPS_MAKEJOBS" ]; then
_cabal_opts+=" --jobs=$XBPS_MAKEJOBS"
fi
do_build() {
cabal update $_cabal_opts
cabal build $_cabal_opts
mv dist-newstyle/build/*/*/glirc-${version}/build/glirc/glirc glirc
}
do_install() {
vbin glirc
vman glirc.1
vlicense LICENSE
}