# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=ax25-tools
pkgver=0.0.10_rc5
pkgrel=1
_ver=${pkgver/_rc/-rc}
pkgdesc="tools for set and configure hamradio ports that use AX.25 Net/ROM or ROSE"
url="http://www.linux-ax25.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="libax25-dev linux-headers"
options="!check" # no tests
subpackages="$pkgname-doc"
source="https://linux-ax25.in-berlin.de/pub/ax25-tools/ax25-tools-$_ver.tar.gz
	ax25.patch
	disable-dmascc.patch
	001-remove-talkd.patch
	"
builddir="$srcdir/"$pkgname-$_ver

build() {
	export CFLAGS="$CFLAGS -fpermissive"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
	make DESTDIR="$pkgdir" installconf
}

sha512sums="
4aac4e53af5924f8f0b807bdc406fbba43043fcd33c509c1129f009e6cf8854abdd8f11087d17d9710fac2b231e80aca630ca17b8a2fe771f49df2c480c059cb  ax25-tools-0.0.10-rc5.tar.gz
6ba18b2dc0166a5c952a0a58d2ab453ed6ecb5e1b6230511f13680eff3caedf22d95c3991e14a12f28d75b9709bdd44ba5816eac1a6226234b5161503fa49ba5  ax25.patch
354e363d06a6ef62d8fb302805ccfe01834bac489b38a74f34f11f4240a2a397a826e7f23cbc260edfd2f60a79613e085cae89c60f335aea0a32bed2b5bb8aec  disable-dmascc.patch
094118ebea16f07ed8571325c61e036df755d8a1858f28252b02bd44bcafb691ebcc7585e6c3b4ba05512073bb6cec3aa7c3741c8b170be12f3a146be28373de  001-remove-talkd.patch
"
