# Maintainer (Arch): Markus Jochim <ich@markusjochim.de>
pkgname=uftp
pkgver=4.6
pkgrel=1
pkgdesc="Multicast FTP software"
arch=('i686' 'x86_64' 'mips64el')
depends=('openssl')
url="http://uftp-multicast.sourceforge.net/"
license=('GPL3')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}-multicast/${pkgname}-${pkgver}.tar)
md5sums=('23345c287cc909fbdf6b7457d28817e1')

prepare() {
	cd "$srcdir/${pkgname}-${pkgver}/"
  sed -e "s,/bin,/usr/bin,g" \
      -e "s,/usr/sbin,/usr/bin,g" \
      -i makefile
}

build() {
	cd "$srcdir/${pkgname}-${pkgver}/"
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}/"
	make DESTDIR="${pkgdir}" install
}