Unverified Commit 7b62746e authored by prspkt's avatar prspkt

testing/py3-incoming: modernize

parent a65a935e
......@@ -9,36 +9,19 @@ url="https://github.com/vaidik/incoming"
arch="noarch"
license="MIT"
depends="python3"
depends_dev=""
makedepends="py3-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-incoming" # Backwards compatibility
provides="py-incoming=$pkgver-r$pkgrel" # Backwards compatibility
build() {
cd "$_builddir"
python3 setup.py build || return 1
python3 setup.py build
}
package() {
cd "$_builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
md5sums="eb29d7c925daef241818745e703c6e53 incoming-0.2.6.tar.gz"
sha256sums="b09d781ecfa97ed05ecf3766073f1e68ba7dee5a5cd061a77198035b76cff488 incoming-0.2.6.tar.gz"
sha512sums="82902dc2adfba274497d51baebf577978c4c6a8ab5bf89b54c9b47abe0936f4cd8755c33451429049cc907f23e06b8bd51dbd3fadab4d42fff795a46b020f428 incoming-0.2.6.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment