archrelease: copy trunk to community-any
[ArchLinux/community.git] / echoping / trunk / PKGBUILD
blob821ff154d5ea6d025a36782a84a8ac3d459b459c
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
3 pkgname=echoping
4 pkgver=6.0.2
5 pkgrel=12
6 pkgdesc="tests performance of a remote host by sending HTTP, TCP and UDP requests"
7 arch=('x86_64')
8 url="http://echoping.sourceforge.net/"
9 license=('GPL')
10 depends=(libidn popt libldap)
11 #source=(https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
12 source=("https://pkgs.fedoraproject.org/repo/pkgs/echoping/echoping-$pkgver.tar.gz/991478532b56ab3b6f46ea9fa332626f/echoping-$pkgver.tar.gz"
13         link-echoping-to-libm.patch)
14 md5sums=('991478532b56ab3b6f46ea9fa332626f'
15          '3df2d0073af658579323d5f638de0289')
16 sha256sums=('1dfa4c45bf461b2379ff91773ed7136176e2abac9e85c26bc9654942b5155eac'
17             '4406771935c43591fcb31a9bc27ec342455556dda69686ea58dcf21626d30ca2')
19 prepare() {
20   cd "$srcdir/$pkgname-$pkgver"
21   patch -Np1 -i ../link-echoping-to-libm.patch
24 build() {
25   cd "$srcdir/$pkgname-$pkgver"
26   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
27   ./configure --prefix=/usr --config-cache --with-ssl
28   make
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
34   make DESTDIR="$pkgdir" install