pkgname=python-pkgconfig
pkgver=1.5.4
pkgrel=1
pkgdesc='Python module to interface with the pkg-config command line tool'
arch=(any)
url='https://github.com/matze/pkgconfig'
license=(MIT)
depends=("python")
makedepends=("python-setuptools")
source=(https://pypi.io/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz)
sha256sums=('c34503829fd226822fd93c902b1cf275516908a023a24be0a02ba687f3a00399')

build() {
  cd pkgconfig-$pkgver

  python setup.py build
}

package() {
  cd pkgconfig-$pkgver

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}