libcanfestival: use http download instead of hg checkout 4276/head
authorMichael Heimpold <mhei@heimpold.de>
Tue, 18 Apr 2017 22:44:55 +0000 (00:44 +0200)
committerMichael Heimpold <mhei@heimpold.de>
Tue, 18 Apr 2017 22:45:00 +0000 (00:45 +0200)
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>
libs/libcanfestival/Makefile

index a49f97a2d2b40ad7dd5785e5c1348d4c6fe64e58..9b2821db7411ac970f9e0c6d793ca49185e67d84 100644 (file)
@@ -8,19 +8,21 @@
 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