aboutsummaryrefslogtreecommitdiffstats
path: root/main/swish-e/APKBUILD
blob: 702a240739a6e413abb763acc6f97a8d5470ef54 (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
45
46
47
48
49
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=swish-e
pkgver=2.4.7
pkgrel=8
pkgdesc="Simple Web Indexing System for Humans - Enhanced"
url="http://www.swish-e.org/"
arch="all"
license="GPL"
depends="perl-html-parser perl-html-tagset perl-libwww"
makedepends="perl-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
#source="http://www.swish-e.org/distribution/$pkgname-$pkgver.tar.gz"
source="https://distfiles.macports.org/swish-e/swish-e-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	update_config_sub || return 1
}

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	# Move SwishSpiderConfig.pl because spider.pl won't run without default settings 
	mv "$pkgdir"/usr/share/doc/swish-e/examples/prog-bin/SwishSpiderConfig.pl "$pkgdir"/usr/lib/swish-e/

}

md5sums="736db7a65aed48bb3e2587c52833642d  swish-e-2.4.7.tar.gz"
sha256sums="5ddd541ff8ecb3c78ad6ca76c79e620f457fac9f7d0721ad87e9fa22fe997962  swish-e-2.4.7.tar.gz"
sha512sums="859cb0cacea093f4d6c19353cafe723067569b832485689128b5a86e416aca3a03e1f852b96acc4cb5e6b0f6814cac364d4bbce0a2928fd5ac5224e14022a666  swish-e-2.4.7.tar.gz"