Commit 1c0d6125 authored by Seblu's avatar Seblu
Browse files

Add aurbot-git

parent 00d46365
Loading
Loading
Loading
Loading

aurbot-git/PKGBUILD

0 → 100644
+32 −0
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer

pkgname=aurbot-git
pkgver=21
pkgrel=1
pkgdesc='AUR Builder Bot'
arch=('any')
url='https://github.com/seblu/aurbot'
license=('GPL2')
makedepends=('python-distribute')
depends=('python' 'systemd')
optdepends=('devtools')
makedepends=('git')
source=('git+https://github.com/seblu/aurbot.git')
md5sums=('SKIP')
install=aurbot.install

pkgver() {
  cd aurbot
  git log --pretty=format:''|wc -l
}

package() {
  cd aurbot
  install -Dm755 aurbot "$pkgdir/usr/bin/aurbot"
  install -Dm644 aurbot.service "$pkgdir/usr/lib/systemd/system/aurbot.service"
  install -Dm644 aurbot.sysusers "$pkgdir/usr/lib/sysusers.d/aurbot.conf"
  install -Dm644 packages.conf "$pkgdir/usr/share/doc/aurbot/samples/packages.conf"
  install -dm750 "$pkgdir/var/lib/aurbot"
}

# vim:set ts=2 sw=2 et:
+11 −0
Original line number Diff line number Diff line
#!/bin/bash

## arg 1:  the new package version
post_install() {
  # ensure system users are present
  systemd-sysusers aurbot.conf
  # check file permissions
  chown aurbot:aurbot /var/lib/aurbot
}

# vim:set ts=2 sw=2 ft=sh et: