blob: 0f6c43a270044cdc17157c627e7fa11b982d1703 (
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
|
# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
# Maintainer: Martin Wimpress <code@flexion.org>
pkgname=bip
pkgver=0.9.0rc4
_pkgver=0.9.0-rc4
pkgrel=1
pkgdesc="Multiuser IRC proxy that supports replaying of logged conversations."
arch=('x86_64')
url="http://bip.milkypond.org/"
license=('GPL')
depends=('openssl')
source=("https://projects.duckcorp.org/attachments/download/97/bip-$_pkgver.tar.gz"
"${pkgname}.service")
md5sums=('cd5afefdee246bdd83c0fb2e7744b24f'
'8675ee1b2cb85c0e79c182e897cffd31')
install=${pkgname}.install
prepare() {
cd ${pkgname}-${_pkgver}
# Don't treat warnings as errors.
sed -i 's/-Werror//g' src/Makefile.in
# Make the sample configuration reflect the PKGBUILD defaults
sed -i 's:/var/proxy/logs:/var/log/bip:' samples/$pkgname.conf
}
build() {
cd ${pkgname}-${_pkgver}
./configure \
--prefix=/usr
make
}
package() {
cd ${pkgname}-${_pkgver}
make DESTDIR="${pkgdir}" install
install -D -m755 ${srcdir}/${pkgname}-${_pkgver}/scripts/bipgenconfig "${pkgdir}"/usr/bin/bipgenconfig
install -D -m644 ${srcdir}/${pkgname}-${_pkgver}/samples/$pkgname.conf "${pkgdir}"/usr/share/$pkgname/$pkgname.conf.sample
install -D -m644 ${srcdir}/${pkgname}-${_pkgver}/samples/$pkgname.vim "${pkgdir}"/usr/share/vim/syntax/$pkgname.vim
install -D -m 0644 ${srcdir}/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}
|