[Buildroot] [PATCH v2 1/1] tovid: new package

Baruch Siach baruch at tkos.co.il
Wed Mar 18 09:18:34 UTC 2015


Hi Steve,

On Wed, Mar 18, 2015 at 12:37:13AM -0500, Steve Kenton wrote:
> diff --git a/package/tovid/tovid.hash b/package/tovid/tovid.hash
> new file mode 100644
> index 0000000..32b0831
> --- /dev/null
> +++ b/package/tovid/tovid.hash
> @@ -0,0 +1,2 @@
> +# Locally computed using sha256sum
> +sha256	09db004edc4f467beb3f70c6dde02967073cae0cac028df90b2cd4878ac246ec  tovid-3534.tar.gz

Since you use svn download method below, you should not add a .hash file. Tar 
does not guarantee identical results on different invocations, even on the 
same source tree.

> diff --git a/package/tovid/tovid.mk b/package/tovid/tovid.mk
> new file mode 100644
> index 0000000..9e474fb
> --- /dev/null
> +++ b/package/tovid/tovid.mk
> @@ -0,0 +1,19 @@
> +################################################################################
> +#
> +# tovid
> +#
> +################################################################################
> +
> +TOVID_SITE = http://tovid.googlecode.com/svn/trunk/tovid
> +TOVID_SITE_METHOD = svn
> +TOVID_VERSION = 3534
> +TOVID_LICENSE = GPLv2.0
> +TOVID_LICENSE_FILES = COPYING
> +TOVID_DEPENDENCIES += python
> +
> +# Must be run in source directory to avoid "error: package directory 'libtovid' does not exist"
> +define TOVID_INSTALL_TARGET_CMDS
> +	bash -c "cd $(@D); ./setup.py install --root=$(TARGET_DIR) --prefix=/usr"
> +endef
> +
> +$(eval $(generic-package))

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list