49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Template file for 'eggdrop'
|
|
pkgname=eggdrop
|
|
version=1.9.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="tcl-devel"
|
|
makedepends="tcl-devel openssl-devel zlib-devel"
|
|
short_desc="Internet relay chat (IRC) bot"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.eggheads.org/"
|
|
distfiles="https://ftp.eggheads.org/pub/eggdrop/source/${version%.*}/eggdrop-${version}.tar.gz"
|
|
checksum=e26918ea8a64d9857579c5b60c661a337f20773edd83086b356525beb581736a
|
|
conf_files="/etc/eggdrop/text/banner /etc/eggdrop/text/motd"
|
|
|
|
pre_build() {
|
|
make config
|
|
}
|
|
|
|
do_install() {
|
|
_lib="usr/lib/eggdrop"
|
|
_share="usr/share/eggdrop"
|
|
_conf="etc/eggdrop"
|
|
|
|
make install DEST=ed_staging
|
|
|
|
vbin eggdrop
|
|
|
|
vmkdir "${_lib}"
|
|
vcopy "ed_staging/modules/*.so" "${_lib}"
|
|
vsed -e "s|modules/|/${_lib}/|" -i eggdrop.conf
|
|
|
|
for _asset in language scripts help; do
|
|
vmkdir "${_share}/${_asset}/"
|
|
vcopy "ed_staging/${_asset}/*" "${_share}/${_asset}"
|
|
done
|
|
|
|
for _asset in scripts help; do
|
|
vsed -e "s|${_asset}/|/${_share}/&|" -i eggdrop.conf
|
|
done
|
|
|
|
vmkdir "${_conf}/text"
|
|
vcopy "ed_staging/text/*" "${_conf}/text"
|
|
vsed -e "s|text/|/${_conf}/&|" -i eggdrop.conf
|
|
|
|
vsconf eggdrop.conf
|
|
vsconf eggdrop-basic.conf
|
|
}
|