Skip to content

Instantly share code, notes, and snippets.

@dkasak
Last active September 12, 2020 12:58
Show Gist options
  • Save dkasak/9c1ea59d0ed2daab900ff798e8b9ca3f to your computer and use it in GitHub Desktop.
Save dkasak/9c1ea59d0ed2daab900ff798e8b9ca3f to your computer and use it in GitHub Desktop.
Drop split package for AUR python-censys
diff --git a/.SRCINFO b/.SRCINFO
index e2983e4..b1a3ea0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,25 +5,12 @@ pkgbase = python-censys
url = https://github.com/censys/censys-python
arch = any
license = Apache
- makedepends = python
makedepends = python-setuptools
- makedepends = python2-setuptools
- makedepends = python-requests
- makedepends = python2-requests
- makedepends = python-netaddr
- makedepends = python2-netaddr
- source = https://files.pythonhosted.org/packages/88/4b/3ca07679928c26bb5503b53c37e2f6eef2521289956e2c1bf74b64008afa/censys-0.0.8.tar.gz
- sha256sums = 7e5f623fbdc2ce1dcf3ef531e63ba486f7e255f20c4d4006b4f70b6d59a78534
-
-pkgname = python-censys
- pkgdesc = A light weight Python 3 wrapper to the Censys REST API
depends = python
depends = python-requests
depends = python-netaddr
+ source = https://files.pythonhosted.org/packages/88/4b/3ca07679928c26bb5503b53c37e2f6eef2521289956e2c1bf74b64008afa/censys-0.0.8.tar.gz
+ sha256sums = 7e5f623fbdc2ce1dcf3ef531e63ba486f7e255f20c4d4006b4f70b6d59a78534
-pkgname = python2-censys
- pkgdesc = A light weight Python 2 wrapper to the Censys REST API
- depends = python2
- depends = python2-requests
- depends = python2-netaddr
+pkgname = python-censys
diff --git a/PKGBUILD b/PKGBUILD
index 36d8a3a..b82e35a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,44 +2,24 @@
_pypiname=censys
pkgbase=python-censys
-pkgname=(python-censys python2-censys)
+pkgname=python-censys
pkgdesc='A light weight Python wrapper to the Censys REST API'
pkgver=0.0.8
pkgrel=1
url="https://github.com/censys/censys-python"
license=('Apache')
arch=("any")
-makedepends=('python' 'python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'python-netaddr' 'python2-netaddr')
+depends=('python' 'python-requests' 'python-netaddr')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/88/4b/3ca07679928c26bb5503b53c37e2f6eef2521289956e2c1bf74b64008afa/${_pypiname}-${pkgver}.tar.gz")
sha256sums=('7e5f623fbdc2ce1dcf3ef531e63ba486f7e255f20c4d4006b4f70b6d59a78534')
-prepare() {
- # Create a copy for the python2 package
- cp -r "${_pypiname}-${pkgver}" "python2-${_pypiname}-${pkgver}"
-}
-
build() {
- # build for python 3
- cd "${srcdir}/${_pypiname}-${pkgver}"
- python setup.py build
-
- # build for python 2
- cd "${srcdir}/python2-${_pypiname}-${pkgver}"
- python2 setup.py build
-}
-
-package_python-censys() {
- pkgdesc="A light weight Python 3 wrapper to the Censys REST API"
- depends=('python' 'python-requests' 'python-netaddr')
- cd "${srcdir}/${_pypiname}-${pkgver}"
-
- python setup.py install --root="${pkgdir}/" --optimize=1
+ cd "${srcdir}/${_pypiname}-${pkgver}"
+ python setup.py build
}
-package_python2-censys() {
- pkgdesc="A light weight Python 2 wrapper to the Censys REST API"
- depends=('python2' 'python2-requests' 'python2-netaddr')
- cd "${srcdir}/python2-${_pypiname}-${pkgver}"
-
- python2 setup.py install --root="${pkgdir}/" --optimize=1
+package() {
+ cd "${srcdir}/${_pypiname}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment