summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f17b1973a2a23f75d13866a55a5229e56b67edb (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>

pkgbase=pdb-clone
pkgname=('python-pdb-clone' 'python2-pdb-clone')
pkgver=1.10.1
pkgrel=1
pkgdesc='Clone of pdb, fast and with the remote debugging and attach features'
url='https://github.com/corpusops/pdbclone'
arch=('x86_64')
license=('GPL2')
makedepends=('glibc' 'python' 'python2')
source=(https://pypi.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.zip)
sha512sums=('70470d8fb33deb46c49fd2e072c1b6aa24c0397d21417f0ab1f63c1e05d8ff9797ba10a6c4ff350c29dd3b94ff6175110cb80971b4f0d16e922f948490773070')

prepare() {
  cp -a ${pkgbase}-${pkgver}{,-py2}
}

build() {
  msg2 'Building python...'
  (cd ${pkgbase}-${pkgver}
    python setup.py build
  )
  msg2 'Building python2...'
  (cd ${pkgbase}-${pkgver}-py2
    python2 setup.py build
  )
}

package_python-pdb-clone() {
  depends=('python' 'glibc')
  cd ${pkgbase}-${pkgver}
  python setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

package_python2-pdb-clone() {
  depends=('python2' 'glibc')
  cd ${pkgbase}-${pkgver}-py2
  python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  mv "${pkgdir}/usr/bin/pdb-clone" "${pkgdir}/usr/bin/pdb-clone2"
  mv "${pkgdir}/usr/bin/pdb-attach" "${pkgdir}/usr/bin/pdb-attach2"
}

# vim: ts=2 sw=2 et: