blob: 2d6833610623bb64f304b01d1d25f200f85ece11 (
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
|
# Maintainer: Ricky Liou <rliou92@gmail.com>
pkgname=python-umonitor-git
_gitname=python-umonitor
pkgver=r83.165911e
pkgrel=1
pkgdesc="Dynamic monitor configuration"
arch=('i686' 'x86_64')
url="https://github.com/rliou92/python-umonitor"
license=('MIT')
depends=('python-daemon' 'libxcb')
makedepends=('git' 'python-setuptools')
# install=${_gitname}.install
source=("git://github.com/rliou92/${_gitname}.git")
md5sums=('SKIP')
conflicts=("umonitor-git")
pkgver() {
cd $srcdir/$_gitname
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/$_gitname
python setup.py build
}
package() {
cd $srcdir/$_gitname
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
# license
install -D -p -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|