This was suggested by @hnyman because hg is not a prerequisite in
LEDE or Openwrt, so using that should be avoided, if possible.
The tricky part is that the filename is appended to the URL,
thus we construct/use an URL where the appended filename does not hurt.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
include $(TOPDIR)/rules.mk
PKG_NAME:=libcanfestival
-PKG_RELEASE:=4
+PKG_RELEASE:=5
-PKG_SOURCE_PROTO:=hg
-PKG_SOURCE_URL:=http://dev.automforge.net/CanFestival-3
-PKG_SOURCE_DATE:=2015-08-03
PKG_SOURCE_VERSION:=8bfe0ac00cdb
-PKG_MIRROR_HASH:=6d83e128302956bf654268ed8ee75aa1461f14dc6e566e52966a874564dc4ec5
+PKG_SOURCE_URL:=http://dev.automforge.net/CanFestival-3/archive/$(PKG_SOURCE_VERSION).tar.bz2?_dummyfilename=
+PKG_SOURCE:=CanFestival-3-$(PKG_SOURCE_VERSION).tar.bz2
+PKG_SOURCE_SUBDIR:=CanFestival-3-$(PKG_SOURCE_VERSION)
+PKG_MIRROR_HASH:=0bee7aaef266fc579922ca159b7acbe9cdc9a936ac1f30402814844b007f7185
PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
PKG_LICENSE:=LGPL-2.1+
PKG_LICENSE_FILES:=LICENCE
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+
TAR_OPTIONS+= -m
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1