You are not logged in.
Pages: 1
As x264 is still in development, I like to always have the newest version installed. Hence I've been using a selfmade script, that automatically commits the svn-checkout, configures, compiles and creates a .deb-package, while I've still been using ubuntu. As I now decided to switch to arch (work in progress [tm]) I do ofcourse need such a script running on arch as well. Right from the beginning arch's ABS (or whatever it is called ... I'm still getting a little confused by abs, makepkg, pkgbuild, etc.) impressed me and I - in my opinion - succeeded in porting that script to comply abs' requirements. As I'm convinced by free software's principles, I'd like to share it with everyone else who's interested in using it.
However I'd appreciate if someone checked what I've done, before I publish it in the AUR, as I got some doubts that everything is in proper order.
These doubts are caused by namcap complaining about me stating 'glibc' as the sole dependency, as it is - pretendedly - already covered. The only other dependencies I've given are makedepends, but even when glibc is covered by dependencies of the makedepends it is still required for just running and not building the program and hence has to be included into depends. Is this me conlcuding incorrectly or a namcap bug?
My PKGBUILD:
# Contributor: Actium <Actium@gmx.net>
pkgname=x264-svn
pkgver=CURRENT
pkgrel=1
pkgdesc="free library and executable for encoding H.264/MPEG-4 AVC video streams (development version)"
arch=('i686' 'x86_64')
url="http://www.videolan.org/developers/x264.html"
license=('GPL')
groups=('lib')
depends=('glibc')
makedepends=('make' 'gcc>=4.2.0' 'yasm')
provides=('x264')
conflicts=('x264')
replaces=()
backup=()
options=()
install=
source=()
noextract=()
md5sums=()
build() {
svn co svn://svn.videolan.org/x264/trunk "$startdir/src"
cd "$startdir/src"
pkgver=`svnversion .`
# We want a heavily optimized encoder, hence don't use arch's safe CFLAGS.
unset CFLAGS
./configure --prefix=/usr --enable-pthread --enable-shared --extra-cflags="-march=native"
make || return 1
make DESTDIR="$startdir/pkg" install
}
Thanks (in advance) for your assistance!
Offline
The wiki has some guidelines on CVS/SVN/etc packaging - you should have a look.
namcap is a useful tool, but it is not meant to be a substitute for your own knowledge and research. Go with what you believe is correct.
Offline
submitted to AUR.
however i got a problem now. the aur cms seems not to like me fetching the revision number dynamically (i.e. not having it "hardcoded" in the script). have a look look at the package-name: http://aur.archlinux.org/packages.php?d … 1&ID=14489
Offline
As I told you there, and tomk told you here, you really should read upon the cvs/svn PKGBUILD guidelines. PKGBUILDS must be conform these guidelines, as is told you on the main AUR page.
Once you follow these guidelines, you won't have any problems with the revision number.
[edit]
you can also remove most of the empty lines
Last edited by pressh (2008-01-02 22:18:17)
Offline
I've been using a derivative of this PKGBUILD from predatorfreak for a very long time on 64 bit. It requires a working version of GPAC for full functionality:
# $Id: PKGBUILD,v 1.2 2006/11/09 06:04:35 woody Exp $
# Maintainer: Woody Gilk <woody@archlinux.org>
# Contributor: damir <damir@archlinux.org>
pkgname=x264-svn
pkgver=672
pkgrel=1
pkgdesc="free library for encoding H264/AVC video streams"
url="http://developers.videolan.org/x264.html"
arch=(i686 x86_64)
conflicts=('x264')
provides=('x264')
depends=('libx11')
makedepends=('subversion' 'yasm')
options=(!libtool)
license=('GPL')
_svntrunk=svn://svn.videolan.org/x264/trunk
_svnmod=x264
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod -r $pkgver
cd $_svnmod
export CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -ftree-vectorize"
./configure --prefix=/usr \
--enable-pthread \
--enable-visualize \
--enable-shared \
--enable-pic \
--enable-mp4-output \
--extra-cflags="${CFLAGS}" \
make || return 1
make DESTDIR=${startdir}/pkg install
}
Last edited by skottish (2008-01-04 22:36:23)
Offline
Pages: 1