~gjasso/arch-aurpkgs

3ffa64a26005fb7b228787772434084f974b1a63 — Gustavo Jasso 4 months ago ab42578 + 0700de5
Add 'python-getmac/' from commit '0700de561fa829a76d5e361a15574f6ce03b1b7a'

git-subtree-dir: python-getmac
git-subtree-mainline: ab425784eb061e6dafe547d5bbd018befb08ae6a
git-subtree-split: 0700de561fa829a76d5e361a15574f6ce03b1b7a
3 files changed, 57 insertions(+), 0 deletions(-)

A python-getmac/.SRCINFO
A python-getmac/LICENSE
A python-getmac/PKGBUILD
A python-getmac/.SRCINFO => python-getmac/.SRCINFO +13 -0
@@ 0,0 1,13 @@
pkgbase = python-getmac
	pkgdesc = Pure-Python package to get the MAC address of network interfaces and hosts on the local network.
	pkgver = 0.8.2
	pkgrel = 1
	url = https://github.com/GhostofGoes/getmac
	arch = any
	license = MIT
	makedepends = python-setuptools
	source = https://files.pythonhosted.org/packages/source/g/getmac/getmac-0.8.2.tar.gz
	md5sums = cf1af0d5c0e5d1fe7f62401bcb726a26

pkgname = python-getmac


A python-getmac/LICENSE => python-getmac/LICENSE +21 -0
@@ 0,0 1,21 @@
MIT License

Copyright (c) 2019 Christopher Goes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

A python-getmac/PKGBUILD => python-getmac/PKGBUILD +23 -0
@@ 0,0 1,23 @@
# Maintainer: Gustavo Jasso <gustavo at jasso dot info>
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.8.2
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=('cf1af0d5c0e5d1fe7f62401bcb726a26')

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
}