yochananmarqos

Untitled

Feb 27th, 2020
184
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-cppheaderparser
  2. _name=CppHeaderParser
  3. pkgver=2.7.4
  4. pkgrel=1
  5. pkgdesc="Parse C++ header files and generate a data structure representing the class"
  6. arch=('any')
  7. url="http://senexcanis.com/open-source/cppheaderparser"
  8. license=('custom')
  9. depends=('python-ply')
  10. makedepends=('python-setuptools')
  11. source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
  12.         'https://bitbucket.org/senex/cppheaderparser/raw/6613bc9718009a3bd90b9de2f64e0e94eec5afcc/LICENSE.txt')
  13. sha256sums=('382b30416d95b0a5e8502b214810dcac2a56432917e2651447d3abe253e3cc42'
  14.             'eb7b784bb4d031e970db11186fdbd3833b327d77d0250687daffd18b4900693d')
  15.  
  16. build() {
  17.     cd "$_name-$pkgver"
  18.     python setup.py build
  19. }
  20.  
  21. package() {
  22.     cd "$_name-$pkgver"
  23.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  24.  
  25.     install -Dm644 "$srcdir/LICENSE.txt" -t "$pkgdir/usr/share/licenses/$pkgname"
  26. }
RAW Paste Data