From a63f4861e99b8115362d123f9c03fe7a6e420053 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 10 Oct 2013 02:51:54 +0200 Subject: media-video/droidcam: add ebuild --- media-video/droidcam/Manifest | 3 ++ media-video/droidcam/droidcam-3.5.4.ebuild | 48 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 media-video/droidcam/Manifest create mode 100644 media-video/droidcam/droidcam-3.5.4.ebuild (limited to 'media-video/droidcam') diff --git a/media-video/droidcam/Manifest b/media-video/droidcam/Manifest new file mode 100644 index 0000000..968402a --- /dev/null +++ b/media-video/droidcam/Manifest @@ -0,0 +1,3 @@ +DIST droidcam-v4l2-x64.tar.gz 743624 SHA256 389fadc0d5f23e0628ddec7d7270fe119e96244c1b18b9b43e568c2770f340ec SHA512 658c966b3eefdc1a617a712192957ddee10fc48562530d5106ce5787da984f9199794d0c434325b3754e057d897336dd6c444383de3c8334082b1a05a5bb1c7e WHIRLPOOL 820e549263bdea9b8267b779d5f517892839f225cdfee497f1fea53996e68c478b6081e3c584efa3ab1cb3585fd6eaf3a8ca22c7867656bf9ad4cf70b5649c66 +DIST droidcam-v4l2-x86.tar.gz 674466 SHA256 ad5fb6c6603eb0ac7ffd4503c36fdd4c944a073773746f4386eb9da080863ab6 SHA512 35c75a6b26f7468aa0d98a368184541576cb79153858d014dfb5697c7e2d092f0c4750310e971e827108e4899caaf4f706875618af5292d87af345bbab3aefdf WHIRLPOOL 28ead9267c29df316244016d312bb4a154a71689b574bdab8b73520bfaaff77b2814b4217b40b6e6d9bbf22906dcd06204bb03202dbf7207a6d9cf74f6bf4bf3 +EBUILD droidcam-3.5.4.ebuild 1068 SHA256 660951a94f62e593eeb2203ed9835cd12954db50a5c7adf076e76cf31f5cdb71 SHA512 e43c4d9a32bb9d6bffaf3eebbdefefa603e2d08828005ec001d01110010cfb598e8e50f9802e10501a704ee77352b8fe0938c035f5f0454d1883ecdd17ac3434 WHIRLPOOL 9d58ca91001efe152910984731c169e61fa6ecac2f63df3c379207708e724189df5f3bf670e1389f59af63d6f33046d84d3ae0bf7bc8da821fc77f843ad04852 diff --git a/media-video/droidcam/droidcam-3.5.4.ebuild b/media-video/droidcam/droidcam-3.5.4.ebuild new file mode 100644 index 0000000..1ae0fca --- /dev/null +++ b/media-video/droidcam/droidcam-3.5.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils linux-mod user + +DESCRIPTION="Use your Android phone as a wireless webcam" +HOMEPAGE="http://www.dev47apps.com/" +SRC_URI="x86? ( http://www.dev47apps.com/files/droidcam-v4l2-x86.tar.gz ) + amd64? ( http://www.dev47apps.com/files/droidcam-v4l2-x64.tar.gz )" + +LICENSE="as-is" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="net-wireless/bluez" +RDEPEND="${DEPEND}" + +BUILD_TARGETS="all" +BUILD_TARGET_ARCH="${ARCH}" +MODULE_NAMES="v4l2loopback-dc(droid:${S})" + +src_unpack() { + if use x86 ; then + unpack droidcam-v4l2-x86.tar.gz + fi + + if use amd64 ; then + unpack droidcam-v4l2-x64.tar.gz + fi + mkdir "${WORKDIR}"/droidcam-3.5.4 + mv v4l2loopback/* "${WORKDIR}"/droidcam-3.5.4 + rmdir v4l2loopback + mv README droidcam icon.png install "${WORKDIR}"/droidcam-3.5.4 +} + +src_install() { + cd "${S}" + mv icon.png droidcam.png + dobin droidcam + doicon droidcam.png + linux-mod_src_install + dodoc README + domenu "${FILESDIR}"/droidcam.desktop +} -- cgit v1.2.3