blob: e7d2c6baffc0462674941eeb3670cf34e4a648c2 (
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
49
50
51
52
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: lilydjwg <lilydjwg@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=liboping
pkgver=1.10.0
pkgrel=14
pkgdesc='C library to generate ICMP echo requests, better known as "ping packets"'
url='https://noping.cc/'
arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=('GPL')
_pinned_dependencies=(
'glibc>=2.36'
'libncursesw.so=6'
)
depends=('libcap' "${_pinned_dependencies[@]}")
makedepends=('ncurses')
optdepends=('perl: perl bindings'
'ncurses: noping CLI tool')
source=("${url}files/${pkgname}-${pkgver}.tar.bz2"
'ncursesw.patch' 'format.patch')
sha256sums=('eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8'
'64db954250e7cd4f77ed28d0d4f3deb1525ebe4145c6b20caafc2459c8b1c780'
'1975ebcfeb24e9269f49d23075295866b62511e500574f2c86d562e18f01dda7')
install=install
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Setting capabilities/setuid is futile in fakeroot.
# (We do that in the install script.)
sed -i 's/ install-exec-hook//g' src/Makefile.in
# Our ncurses has full UTF8 support although not called ncursesw.
patch -p1 -i ../ncursesw.patch
patch -p1 -i ../format.patch
# Be serious.
sed '/-Wall -Werror/d' -i src/Makefile.*
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --with-perl-bindings='INSTALLDIRS=vendor'
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|