diff options
Diffstat (limited to 'testing/irclog2html/APKBUILD')
-rw-r--r-- | testing/irclog2html/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/irclog2html/APKBUILD b/testing/irclog2html/APKBUILD new file mode 100644 index 0000000000..37474590b1 --- /dev/null +++ b/testing/irclog2html/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=irclog2html +pkgver=2.10.0 +pkgrel=0 +pkgdesc="Script to convert IRC logs to HTML and other formats" +url="http://mg.pov.lt/irclog2html/" +arch="noarch" +license="GPL2+" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/i/$pkgname/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + install -Dpm 0644 src/$pkgname/irclog.css \ + "$pkgdir"/usr/share/$pkgname/irclog.css || return 1 +} + +md5sums="22146b05fde89e27b8f98e95ab219113 irclog2html-2.10.0.tar.gz" |