Commit c90c4c9c authored by Seblu's avatar Seblu
Browse files

Add setup.py

parent 3ed224ba
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
# Maintainer: Sebastien Luttringer <seblu@aur.archlinux.org>
# Maintainer: Sébastien Luttringer

pkgname=aurbot
pkgver=1_git_$(git log -1 --pretty=format:%h)
pkgrel=1
pkgdesc='Automatic Arch User Repository builder'
pkgname=aurbot-git
pkgver=$(git log -1 --pretty=format:%h)
pkgrel=$(date +%s)
pkgdesc='AUR Builder Bot'
arch=('any')
url='https://github.com/seblu/aurbot'
license=('GPL2')
arch=('any')
makedepends=('python-distribute')
depends=('python' 'pyalpm' 'python-aur')

package() {
  # install binary
  install -D -m 755 "$startdir/aurbot" "$pkgdir/usr/bin/aurbot"

  # install config
  install -D -m 644 "$startdir/repositories.conf" "$pkgdir/etc/aurbot/repository.conf"
  cd "$startdir"
  python setup.py install --root "$pkgdir"
}

# vim:set ts=2 sw=2 ft=sh et:
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python
# Copyright Sébastien Luttringer <seblu@seblu.net>
# Started 30/10/2011
# Copyright 2012 - Sébastien Luttringer

import os
import time
+0 −0

File moved.

setup.py

0 → 100644
+22 −0
Original line number Diff line number Diff line
from setuptools import setup
import os

ldesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()

setup(
    name='aurbot',
    version=0,
    description='AUR builder bot',
    long_description=ldesc,
    author='Sébastien Luttringer',
    license='GPL2',
    scripts=['bin/aurbot'],
    data_files=(
	('/usr/share/aurbot/', ('README.rst', 'COPYING', 'CHANGELOG')),
        ('/usr/share/aurbot/samples/', ('samples/repositories.conf',))
        ),
    classifiers=[
        'Operating System :: Unix',
        'Programming Language :: Python',
        ],
    )