diff --git a/python-socketfromfd/.SRCINFO b/python-socketfromfd/.SRCINFO new file mode 100644 index 0000000..2405ded --- /dev/null +++ b/python-socketfromfd/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-socketfromfd + pkgdesc = socket.fromfd() with auto-detection of family and type + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/tiran/socketfromfd + arch = any + license = Apache + checkdepends = python-pytest + makedepends = python-setuptools + source = python-socketfromfd-0.2.0.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v0.2.0.tar.gz + b2sums = d1bcb4e66913cd3c9e988e2d3bdeee19d10a804bf6a0c243061da95f61802fe56a8192f622f8235b776d067aab83a89f69f08af462fa7fca5ee00dedec26c18c + +pkgname = python-socketfromfd diff --git a/python-socketfromfd/PKGBUILD b/python-socketfromfd/PKGBUILD new file mode 100644 index 0000000..5c2b868 --- /dev/null +++ b/python-socketfromfd/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Giovanni Harting <539@idlegandalf.com> + +pkgname=python-socketfromfd +_name=${pkgname#python-} +pkgver=0.2.0 +pkgrel=1 +pkgdesc="socket.fromfd() with auto-detection of family and type" +arch=('any') +url="https://github.com/tiran/socketfromfd" +license=('Apache') +depends=() +makedepends=('python-setuptools') +checkdepends=('python-pytest') +source=("$pkgname-$pkgver.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v$pkgver.tar.gz") +b2sums=('d1bcb4e66913cd3c9e988e2d3bdeee19d10a804bf6a0c243061da95f61802fe56a8192f622f8235b776d067aab83a89f69f08af462fa7fca5ee00dedec26c18c') + +check() { + cd $_name-$pkgver + pytest +} + +build() { + cd $_name-$pkgver + + python setup.py build +} + +package() { + cd $_name-$pkgver + + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +}