Permalink
Browse files

arch package

  • Loading branch information...
1 parent b7bf1c1 commit 9b1a56427810d57a0ef12b099a4d956cd8133627 @lemanyk committed Dec 20, 2012
Showing with 46 additions and 4 deletions.
  1. +36 −0 PKGBUILD
  2. +0 −3 __init__.py
  3. +9 −0 makefile
  4. +1 −1 setup.py
View
36 PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: lemanyk <lemanyk@gmail.com>
+pkgname=netlog
+pkgver=0.2
+pkgrel=3
+epoch=
+pkgdesc='logging stream server written on gevent'
+arch=('any')
+url='https://github.com/lemanyk/netlog'
+license=('MIT')
+groups=()
+depends=('python2' 'python2-gevent')
+makedepends=('setuptools')
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=(http://pypi.python.org/packages/source/n/netlog/netlog-$pkgver.tar.gz)
+noextract=()
+md5sums=('2a6323ad34457e491817b59626c436f5') #generate with 'makepkg -g'
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
View
3 __init__.py
@@ -1,3 +0,0 @@
-# coding: utf-8
-
-from api import Server, Client
View
9 makefile
@@ -0,0 +1,9 @@
+all:
+ python2 setup.py sdist
+ mkdir -p dist/netlog
+ cp PKGBUILD dist/netlog
+ cd dist; tar -czvf netlog.tar.gz netlog
+
+clean:
+ rm -r dist
+ find -name '*.pyc' -delete
View
2 setup.py
@@ -10,7 +10,7 @@
url='https://github.com/lemanyk/netlog',
download_url='https://github.com/lemanyk/netlog/',
description='logging stream server written on gevent',
- author='Gennady Leman',
+ author='lemanyk',
author_email='lemanyk@gmail.com',
install_requires=['gevent'],
license='MIT',

0 comments on commit 9b1a564

Please sign in to comment.