summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3404b8e2a18f025c28500b061e10504eca24ff94 (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
# Maintainer: nnnn20430 <nnnn20430@mindcraft.si.eu.org>
pkgname=citadel
pkgver=v9.01.r0.ga845b4f
pkgrel=1
pkgdesc="Citadel/UX is a collaboration suite (messaging and groupware) that is descended from the Citadel family of programs which became popular in the 1980s and 1990s as a bulletin board system platform."
arch=('i686' 'x86_64')
url="http://www.citadel.org/"
license=('GPL')
depends=('libcitadel' 'libev' 'c-ares' 'curl' 'expat' 'libical' 'libsieve' 'perl-berkeleydb')
makedepends=('git' 'libcitadel' 'libev' 'c-ares' 'curl' 'expat' 'libical' 'libsieve' 'perl-berkeleydb' 'libtool' 'autoconf' 'make' 'gcc')
optdepends=('openssl: SSL support' 'shared-mime-info: filetype identification')
conflicts=()
changelog=""
source=("git://git.citadel.org/appl/gitroot/citadel.git" "citadel.service")
install="citadel.install"
md5sums=('SKIP' 'SKIP')

pkgver() {
  cd "$srcdir/citadel"
  git checkout v9.01
  git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/citadel/citadel"
	./bootstrap
        ./configure --prefix=/usr/local/citadel
	make
}

package() {
        cd "$srcdir/citadel/citadel"
        make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir/usr/lib/systemd/system"
	cp "$startdir/citadel.service" "$pkgdir/usr/lib/systemd/system/citadel.service"	
}