mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 21:32:22 +01:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=py-irc
|
|
_pkgname=irc
|
|
pkgver=8.5.1
|
|
pkgrel=0
|
|
pkgdesc="A python irc client library"
|
|
url="http://python-irclib.sourceforge.net/"
|
|
arch="noarch"
|
|
license="LGPL2+"
|
|
depends=""
|
|
depends_dev="python2"
|
|
makedepends="$depends_dev py-hgtools py-setuptools"
|
|
install=""
|
|
subpackages="$pkgname-scripts"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip"
|
|
|
|
_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"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
scripts() {
|
|
_files="dccreceive.py dccsend.py irccat.py irccat2.py \
|
|
servermap.py testbot.py"
|
|
for _file in $_files; do
|
|
install -Dm644 "$_builddir"/scripts/$_file \
|
|
"$subpkgdir"/usr/share/doc/"$pkgname"/scripts/$_file || return 1
|
|
done
|
|
}
|
|
|
|
md5sums="6588ecc709df2220d0a4474c71b4e434 irc-8.5.1.zip"
|
|
sha256sums="ff29edb5c51bbf6583f60f677e846b3eb651374c2f6b39800e4b4947c989b8db irc-8.5.1.zip"
|
|
sha512sums="02f09b4c7dc4036ececc2aff97f761ddbc950dfebae298e95381d706f3b8be65704ad0a64ea9b581b5ce48f2a060beeb8b6ac5179a29844fe8e821502fc0d4a9 irc-8.5.1.zip"
|