LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 495|回复: 1

ffcast ebuild

[复制链接]
发表于 2010-10-28 22:35:04 | 显示全部楼层 |阅读模式
以前一直是arch,前一阵主系统迁移到gentoo,前天看了ebuild的编写规则,将fcitx4的ebuild写了下放在自己的overlay中,刚又看了arch版的lolicon同学的ffcast是个非常方便的桌面录制脚本,遂写了个ffcast的ebuild
刚学写ebuild,不免有些粗制滥造,依赖问题也处理的不够好,希望大家指教指教
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. EAPI="1"
  5. DESCRIPTION="bash script that takes screencast of given window/screen area using ffmpeg/xwininfo/xrectsel"
  6. HOMEPAGE="http://github.com/lolilolicon/ffcast"
  7. LICENSE="GPL-3"
  8. SLOT="0"
  9. KEYWORDS="~x86 ~amd64"
  10. IUSE=""
  11. EGIT_REPO_URI="git://github.com/lolilolicon/ffcast.git"
  12. inherit git
  13. DEPEND="sys-devel/bc
  14.     app-shells/bash
  15.     media-video/ffmpeg
  16.     media-libs/x264
  17.     x11-apps/xwininfo"
  18. src_compile() {
  19.     cd "${S}"
  20.     emake || die "emake failed"
  21. }
  22. src_install() {
  23.     dobin ffcast xrectsel || die "dobin failed"
  24.     dodoc ffcast.conf || die "dodoc failed"
  25.     doman ffcast.1 || die "doman failed"
  26. }
复制代码
 楼主| 发表于 2010-10-28 22:37:20 | 显示全部楼层
不明白之处是ebuild中的git是如何处理增量更新的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表