summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD20
2 files changed, 8 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b6e8c382ba0..c6bc96206f2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,14 @@
-# Generated by mksrcinfo v8
-# Sun Jan 21 21:26:53 UTC 2018
pkgbase = python-fudge
pkgdesc = Use fake objects (mocks, stubs, etc) to test real ones
pkgver = 1.1.1
- pkgrel = 1
+ pkgrel = 2
url = http://farmdev.com/projects/fudge/
arch = any
license = MIT
makedepends = python-setuptools
- makedepends = python2-setuptools
+ depends = python
optdepends = python-fudge-docs: documentation for Fudge
source = https://files.pythonhosted.org/packages/source/f/fudge/fudge-1.1.1.tar.gz
md5sums = 3aefdd12c3e0518665fe6735b24a0f9b
pkgname = python-fudge
- depends = python
-
-pkgname = python2-fudge
- depends = python2
-
diff --git a/PKGBUILD b/PKGBUILD
index 887a620b93f..046cedb1ef1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,21 @@
# Maintainer: Aaron DeVore <aaron.devore@gmail.com>
# Contributor: tocer <tocer.deng@gmail.com>
-_name=fudge
-pkgname=(python-$_name python2-$_name)
+pkgname=python-fudge
pkgver=1.1.1
-pkgrel=1
+pkgrel=2
pkgdesc="Use fake objects (mocks, stubs, etc) to test real ones"
arch=(any)
url="http://farmdev.com/projects/fudge/"
license=(MIT)
-makedepends=('python-setuptools' python2-setuptools)
+depends=('python')
+makedepends=('python-setuptools')
optdepends=('python-fudge-docs: documentation for Fudge')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("https://files.pythonhosted.org/packages/source/f/fudge/fudge-${pkgver}.tar.gz")
md5sums=('3aefdd12c3e0518665fe6735b24a0f9b')
-package_python-fudge() {
+package() {
cd "$srcdir/fudge-$pkgver"
- depends=('python')
python setup.py install --root=$pkgdir/ --optimize=1
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
-
-package_python2-fudge() {
- cd "$srcdir/fudge-$pkgver"
- depends=('python2')
- python2 setup.py install --root=$pkgdir/ --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
-}