|
以前一直是arch,前一阵主系统迁移到gentoo,前天看了ebuild的编写规则,将fcitx4的ebuild写了下放在自己的overlay中,刚又看了arch版的lolicon同学的ffcast是个非常方便的桌面录制脚本,遂写了个ffcast的ebuild
刚学写ebuild,不免有些粗制滥造,依赖问题也处理的不够好,希望大家指教指教
- # Copyright 1999-2009 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: $
- EAPI="1"
- DESCRIPTION="bash script that takes screencast of given window/screen area using ffmpeg/xwininfo/xrectsel"
- HOMEPAGE="http://github.com/lolilolicon/ffcast"
- LICENSE="GPL-3"
- SLOT="0"
- KEYWORDS="~x86 ~amd64"
- IUSE=""
- EGIT_REPO_URI="git://github.com/lolilolicon/ffcast.git"
- inherit git
- DEPEND="sys-devel/bc
- app-shells/bash
- media-video/ffmpeg
- media-libs/x264
- x11-apps/xwininfo"
- src_compile() {
- cd "${S}"
- emake || die "emake failed"
- }
- src_install() {
- dobin ffcast xrectsel || die "dobin failed"
- dodoc ffcast.conf || die "dodoc failed"
- doman ffcast.1 || die "doman failed"
- }
复制代码 |
|