summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a52b8beeeb20ebdf6ef7d595e82e64b84f0e5960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Zacharias Knudsen <zachasme@gmail.com>

pkgname=pgxnclient
pkgver=1.2.1
pkgrel=2
pkgdesc="Command line tool to interact with the PostgreSQL Extension Network"
arch=('x86_64')
url="http://pgxn.org/"
license=('BSD')
depends=('python')
makedepends=('python-distribute')
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('fd66748b32c3153140ec189aee556762')

build() {
  cd $srcdir/$pkgname-$pkgver

  python setup.py build
}

package() {
  cd $srcdir/$pkgname-$pkgver


  install -d -m755 "${pkgdir}/usr/share/licenses/$pkgname"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/"
  
  python setup.py install --root=$pkgdir --optimize=1 --skip-build
}