diff options
author | Arthur Vuillard | 2015-08-27 09:55:14 +0200 |
---|---|---|
committer | Arthur Vuillard | 2015-08-27 09:55:14 +0200 |
commit | 00ddaa7af2812364f6f34abf3c9f43d3d7f244d9 (patch) | |
tree | 4da0a2ba408d26379887101e0f0dea04968abbbc | |
download | aur-00ddaa7af2812364f6f34abf3c9f43d3d7f244d9.tar.gz |
initial release
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 15 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ddfc6e7064fd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = postgresql-multicorn + pkgdesc = Python Wrapper for Postgresql 9.2+ Foreign Data Wrapper + pkgver = 1.2.3 + pkgrel = 1 + url = http://multicorn.org/ + arch = x86_64 + arch = i686 + license = Postgresql + depends = postgresql>=9.2 + source = https://github.com/Kozea/Multicorn/archive/v1.2.3.zip + md5sums = e6be80a309f0fb0ca15e0802f8ddf893 + +pkgname = postgresql-multicorn + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..89ae7ce6fc01 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +pkg +src +*.zip +*.pkg.tar.xz +*.tar.gz +#### joe made this: https://goel.io/joe + +#####=== Vim ===##### +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1003736487bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Arthur Vuillard <arthur@hashbang.fr> +pkgname=postgresql-multicorn +pkgver=1.2.3 +pkgrel=1 +pkgdesc="Python Wrapper for Postgresql 9.2+ Foreign Data Wrapper" +url="http://multicorn.org/" +arch=('x86_64' 'i686') +license=('Postgresql') +depends=('postgresql>=9.2') +makedepends=() + +_github_name="Multicorn" +_github_tag="v${pkgver}" + +source=( + "https://github.com/Kozea/${_github_name}/archive/${_github_tag}.zip" +) + +md5sums=('e6be80a309f0fb0ca15e0802f8ddf893') + +build(){ + cd ${srcdir}/${_github_name}-${pkgver} + make +} + +package(){ + cd ${srcdir}/${_github_name}-${pkgver} + python setup.py install --root="$pkgdir/" + + mkdir -p ${pkgdir}/usr/lib/postgresql + mkdir -p ${pkgdir}/usr/share/postgresql/extension + + cp sql/multicorn--${pkgver}.sql multicorn.control ${pkgdir}/usr/share/postgresql/extension + chmod 644 ${pkgdir}/usr/share/postgresql/extension/* + cp multicorn.so ${pkgdir}/usr/lib/postgresql +} |