blob: 80d466808aed67759b7bd93df62a6aae5af3cc55 (
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
|
# Maintainer: Mia Teufel <mteufel@urandom.eu.org>
pkgbase=python-ircmatch-git
pkgname=('python-ircmatch-git' 'python2-ircmatch-git')
pkgver=1.2.18.0083a41
pkgrel=2
pkgdesc="python extension for fast IRC mask matching and collapsing"
arch=('i686' 'x86_64')
url="https://github.com/mammon-ircd/ircmatch"
license=('custom')
makedepends=('python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=("python-ircmatch-git::git+https://github.com/mammon-ircd/ircmatch.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/python-ircmatch-git"
echo "$(python setup.py --version).$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}"
cp -r python-ircmatch-git python2-ircmatch-git
}
package_python-ircmatch-git() {
depends=('python')
cd "${srcdir}/python-ircmatch-git"
python3 setup.py install --root=$pkgdir --optimize=1
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}
package_python2-ircmatch-git() {
depends=('python2')
cd "${srcdir}/python2-ircmatch-git"
python2 setup.py install --root=$pkgdir --optimize=1
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}
|