aports/main/swish-e/APKBUILD
2024-06-10 02:48:01 +00:00

51 lines
1.5 KiB
Text

# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=swish-e
pkgver=2.4.7
pkgrel=17
pkgdesc="Simple Web Indexing System for Humans - Enhanced"
url="http://www.swish-e.org/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # fixme: failing tests
depends="perl-html-parser perl-html-tagset perl-libwww"
makedepends="perl-dev"
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
format-security.patch
zlib-shadowing.patch"
prepare() {
default_prepare
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
}
check() {
make check
}
package() {
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/
}
sha512sums="
859cb0cacea093f4d6c19353cafe723067569b832485689128b5a86e416aca3a03e1f852b96acc4cb5e6b0f6814cac364d4bbce0a2928fd5ac5224e14022a666 swish-e-2.4.7.tar.gz
8cadd53fb39ee17c85faba20acfd6e323f2253d2f90d57528600e61173c81d8a898309e0ba8fd2ec176f2b98833fb2c4d3b6a4ee90f8f2ad942186d77bd45c4f format-security.patch
33c637ac734a7a5e7be398728e3f109a20c9cb69fdb739339d3fbd0a2392fa135e442d8e682889b881e9bf049a3344f4f0e7b0cf5e009bd2ad40b1772e8910ec zlib-shadowing.patch
"