From 003643e158d32787f46d1bc7d624eb7284b51472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 28 Sep 2020 23:19:28 +0700 Subject: [PATCH] python-snappy: drop package --- srcpkgs/python-snappy/template | 27 ------------------- srcpkgs/python3-snappy | 1 - srcpkgs/python3-snappy/template | 22 +++++++++++++++ .../{python-snappy => python3-snappy}/update | 0 4 files changed, 22 insertions(+), 28 deletions(-) delete mode 100644 srcpkgs/python-snappy/template delete mode 120000 srcpkgs/python3-snappy create mode 100644 srcpkgs/python3-snappy/template rename srcpkgs/{python-snappy => python3-snappy}/update (100%) diff --git a/srcpkgs/python-snappy/template b/srcpkgs/python-snappy/template deleted file mode 100644 index b1870cbe681..00000000000 --- a/srcpkgs/python-snappy/template +++ /dev/null @@ -1,27 +0,0 @@ -# Template file for 'python-snappy' -pkgname=python-snappy -version=0.5.4 -revision=2 -build_style=python-module -pycompile_module="snappy" -hostmakedepends="python-setuptools python3-setuptools" -makedepends="python-devel python3-devel snappy-devel" -short_desc="Python2 bindings for the snappy compression library from Google" -maintainer="Orphaned " -license="BSD-3-Clause" -homepage="https://github.com/andrix/python-snappy" -distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=d9c26532cfa510f45e8d135cde140e8a5603d3fb254cfec273ebc0ecf9f668e2 - -post_install() { - vlicense LICENSE -} - -python3-snappy_package() { - pycompile_module="snappy" - short_desc="${pkgname/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-snappy b/srcpkgs/python3-snappy deleted file mode 120000 index 0918969c3e0..00000000000 --- a/srcpkgs/python3-snappy +++ /dev/null @@ -1 +0,0 @@ -python-snappy \ No newline at end of file diff --git a/srcpkgs/python3-snappy/template b/srcpkgs/python3-snappy/template new file mode 100644 index 00000000000..a23d3d6e401 --- /dev/null +++ b/srcpkgs/python3-snappy/template @@ -0,0 +1,22 @@ +# Template file for 'python3-snappy' +pkgname=python3-snappy +_pkgname=python-snappy +version=0.5.4 +revision=3 +wrksrc=$_pkgname-$version +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel snappy-devel python3-cffi libffi-devel" +short_desc="Python library for the snappy compression library from Google" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://github.com/andrix/python-snappy" +distfiles="${PYPI_SITE}/p/${_pkgname}/${_pkgname}-${version}.tar.gz" +checksum=d9c26532cfa510f45e8d135cde140e8a5603d3fb254cfec273ebc0ecf9f668e2 + +pre_check() { + export PYTHONPATH=$(cd build/lib* && pwd) +} +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python-snappy/update b/srcpkgs/python3-snappy/update similarity index 100% rename from srcpkgs/python-snappy/update rename to srcpkgs/python3-snappy/update