summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9b7efeac7dd53447f940d9983e909151bd3f19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Niklas Reimer <niklas at backbord dot net>
pkgname='python-getmac'
_name=${pkgname#python-}
pkgdesc="Pure-Python package to get the MAC address of network interfaces and hosts on the local network."
pkgver=0.9.4
pkgrel=1
url="https://github.com/GhostofGoes/getmac"
arch=('any')
license=('MIT')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
md5sums=('4d107e743f0b47f39dc0e70eb3067f83')

build() {
    cd "$srcdir/$_name-$pkgver"
    python setup.py build
}

package() {
    install -Dm644 "$startdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    cd "$srcdir/$_name-$pkgver"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}