# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=uucp
pkgver=1.07
pkgrel=0
pkgdesc="Open-source implementation of UUCP"
url="https://www.airs.com/ian/uucp.html"
arch="all"
options="suid"
license="GPL-2.0+ AND GPL-2.0-only AND LGPL-2.0+ AND Public-Domain"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/uucp/uucp-$pkgver.tar.gz"

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

check() {
	cd "$builddir"
	make check
}

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

sha512sums="13d215890234e638bed53dce7bab6eb78e0ce6b658f23ac1d7f8abc6e1d97963bef76aa4148ca644f450d5a1678fac940b73fbcd5845d7f5bea3afbd8055229b  uucp-1.07.tar.gz"