summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4e9eacc36c2e57baa318c0567a0b8f3847eeb84 (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
# Maintainer: Andrew Sun <adsun701@gmail.com>

pkgname=2ping
pkgver=4.3
pkgrel=1
pkgdesc="a bi-directional ping utility"
arch=('any')
url="https://www.finnie.org/software/2ping/"
license=("GPL2")
depends=("python" "python-dnspython" "python-netifaces" "python-pycryptodome")
makedepends=("python-setuptools")
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/rfinnie/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('d729c021ed5bcd29137da520a465632e19cf4c4339e0426546593379a570327e')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python3 setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/2ping/COPYING"
}