diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
3 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d580b8561585 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-anyconfig-bson-backend + pkgdesc = A parser backend module for python-anyconfig to load and dump BSON files using pymongo. + pkgver = 0.1.2 + pkgrel = 1 + url = https://github.com/ssato/python-anyconfig-bson-backend + arch = any + license = MIT + depends = python-anyconfig + depends = python-pymongo + source = https://files.pythonhosted.org/packages/source/a/anyconfig-bson-backend/anyconfig-bson-backend-0.1.2.tar.gz + sha256sums = 8e719d6297544dab92458e4f3d03e4421af5de5546a699a12699f3db0c453e09 + +pkgname = python-anyconfig-bson-backend + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..528e103d72dc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: pumpkincheshire <sollyonzou@gmail.com> + +_name=anyconfig-bson-backend +pkgname=python-$_name +pkgver=0.1.2 +pkgrel=1 +pkgdesc='A parser backend module for python-anyconfig to load and dump BSON files using pymongo.' +url='https://github.com/ssato/python-anyconfig-bson-backend' +arch=('any') +license=('MIT') +depends=('python-anyconfig' 'python-pymongo') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha256sums=('8e719d6297544dab92458e4f3d03e4421af5de5546a699a12699f3db0c453e09') + +build() { + cd "$srcdir/$_name-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE* -t "$pkgdir/usr/share/licenses/$pkgname" +} |