[SOLVED] New PKGBUILD for dvbcut. Please review.
Bad English, sorry!
I am a heavy user of dvbcut. It is really nice program to cut commercials out of dvb recordings.
http://dvbcut.sourceforge.net/
The problem was, i could not build dvbcut 0.5.4 on arch. Probably because of new compiler versions and scons problems. So i used an old binary in my home directory.
The good news is, they changed the build system a few days ago:
http://www.mail-archive.com/dvbcut-user … 01006.html
Now i can build dvbcut and i adopted the packages on AUR.
http://aur.archlinux.org/packages.php?ID=2793
Before i update AUR, i want to make sure, that everything is ok. Is the svn solution appropriate?
PKGBUILD
# Contributor: AndyRTR <[email protected]>
pkgname=dvbcut
pkgver=0.5.4
pkgrel=2
pkgdesc="Qt application for cutting parts out of DVB streams"
arch=('i686' 'x86_64')
url="http://dvbcut.sourceforge.net/index.html"
license="GPL"
depends=('qt3' 'libao')
makedepends=('autoconf' 'make' 'subversion')
install=dvbcut.install
source=(dvbcut.desktop)
md5sums=('e41118aef010f3a19140f9fc2463d4ce')
build() {
cd ${srcdir}
# 0.5.4 does not build anymore. Using svn until next release.
msg "Connecting to SVN server...."
if [ -d dvbcut/.svn ]; then
(cd dvbcut && svn up -r 129)
else
svn co -r 129 --config-dir ./ https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk dvbcut
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r dvbcut dvbcut-build
cd dvbcut-build
autoconf || return 1
./configure --prefix=/usr --with-qt3=/opt/qt
make || return 1
install -Dm755 ${srcdir}/${pkgname}-build/bin/dvbcut ${pkgdir}/usr/bin/dvbcut
install -Dm644 ${srcdir}/${pkgname}-build/dvbcut.1 ${pkgdir}/usr/share/man/man1/dvbcut.1
install -Dm644 ${startdir}/dvbcut.desktop ${pkgdir}/usr/share/applications/dvbcut.desktop
rm -rf ${srcdir}/dvbcut-build
dvbcut.install
post_install() {
cat << 'EOF'
==> If you have "mplayer" installed on your machine,
==> you can play videos inside of DVBCUT.
EOF
op=$1
shift
$op $*
dvbcut.desktop
[Desktop Entry]
Categories=Qt;Video;AudioVideo;AudioVideoEditing;
Encoding=UTF-8
Name=dvbcut
GenericName=DVBCut
Type=Application
Exec=/usr/bin/dvbcut
Icon=
Last edited by sp42b (2008-06-18 20:45:13)
Instead of using custom svn commands in the build() function, it would be wise to use something along these lines:
_svntrunk=https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk
_svnmod=dvbcut
_revnumber=$pkgver
before the build() function in the PKGBUILD.
This functionality is built into makepkg/ABS already, so there is no need to reinvent it ;-).
Last edited by xaw (2008-06-17 21:36:24)
Similar Messages
-
New PKGBUILDs for calpp and cpyrit-calpp
Hello
I wanted to try the calpp backend for pyrit (a WPA cracking utility), but couldn't find them in either the official repositiories or in AUR. There for I have created new PKGBUILDs for these, they work on my system (x86_64 3.1.0-4-ARCH), but as these are my first ones I wanted to post them here for review before I upload them to AUR.
The main thing I have doubts about are the dependencies. I think I have listed them all but I'm not sure.
Here is the PKGBUILD for calpp:
# Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
pkgname=calpp
pkgver=0.90
pkgrel=2
pkgdesc="Library to allow writing ATI CAL kernels in C++"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/calpp/"
license=('GPL3')
depends=('amdstream' 'boost')
makedepends=('cmake')
source=("http://sourceforge.net/projects/calpp/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('efc3f519492ac8d3178fe42115ce3637')
_streamdir='/opt/amdstream'
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i "s|\$ENV{ATISTREAMSDKROOT}/lib|${_streamdir}/lib|g" CMakeLists.txt
sed -i "s|\$ENV{ATISTREAMSDKROOT}/include|/${_streamdir}/include/CAL|" CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
And here is the PKGBUILD for cpyrit-calpp:
# Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
pkgname=cpyrit-calpp-svn
pkgver=308
pkgrel=3
pkgdesc="CAL++ backend for accelerated attack against WPA-PSK authentication, development version"
url="http://code.google.com/p/pyrit/"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('python2' 'catalyst-utils' 'pyrit-svn')
makedepends=('calpp')
conflicts=('cpyrit-opencl-svn')
_svntrunk='http://pyrit.googlecode.com/svn/trunk'
_svnmod='cpyrit_calpp'
_caldir='/usr/include/CAL/'
build() {
svn co "${_svntrunk}/${_svnmod}"
cd "${_svnmod}"
sed -i "s|VERSION = '0.4.0-dev'|VERSION = '0.4.1-dev'|" setup.py
sed -i "s|CALPP_INC_DIRS = \[\]|CALPP_INC_DIRS = \[\'${_caldir}\'\]|" setup.py
LDFLAGS="" python2 setup.py build
package() {
cd "${srcdir}/${_svnmod}"
python2 setup.py install --root="${pkgdir}" --optimize=1
Thanks in advance
EDIT = Updated the PKGBUILDs
Last edited by ozon-eatar (2011-11-30 22:15:56)Thanks for the respones Stebalien! I have changed the things you pointed out and updated my first post.
I have also run namcap on both packages and their PKGBUILDs. The only thing namcap complains about on the PKGBUILDs are the lack of contributer tag, which I think is unnecessary as I'm listed as the maintainer.
On the cpyrit-calpp package namcap complains about unnecessary dependencies:
cpyrit-calpp-svn I: Depends as namcap sees them: depends=(catalyst-utils python2)
I tried this dep array with all packages listed before uninstalled (well, catalyst and libpcap I couldn't uninstall) and it didn't work. When I added 'calpp' to makedepends it worked, and it ran after I uninstalled calpp again.
As cpyrit-calpp-svn is a backend to the pyrit-svn package and pointless to install without pyrit-svn I added it back to the array. Might add that this is how the dep array looked before:
depends=('python2' 'openssl' 'zlib' 'libpcap' 'amdstream' 'catalyst' 'calpp' 'pyrit-svn')
This is what namcap is telling me about calpp:
calpp I: Depends as namcap sees them: depends=()
BUT it will neither build nor will it compile one of the examples without both amdstream and boost (not just boost-libs). Therefore I have not changed the dep array for calpp. -
My first message on these forums and my first PKGBUILD. It is a plugin for the GIMP and the installation is not a big deal really. Its functionality however is impressive, IMHO. Nevertheless, I would like to post the PKGBUILD here for a peer review. A mistake is easily made despite all checking and double checking. All C&C are welcome.
# Contributor: Serge Gielkens <[email protected]>
# Command line interface and Quicktime support are disabled
pkgname=gimp-mathmap
pkgver=1.2.1
pkgrel=1
pkgdesc="A GIMP plug-in which allows distortion of images specified by mathematical formulae"
url="http://www.complang.tuwien.ac.at/schani/mathmap/"
makedepends=('gimp>=2.2' 'gsl')
depends=('gimp>=2.2' 'gsl')
source=(http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-${pkgver}.tar.gz)
arch=('i686')
license=('GPL')
md5sums=('e06610008184d553ec3ab247c277d20f')
build() {
cd $startdir/src/mathmap-$pkgver
make || return 1
/bin/install -D -m 755 mathmap $startdir/pkg/usr/lib/gimp/2.0/plug-ins/mathmap
/bin/install -D -m 644 new_template.c $startdir/pkg/usr/share/gimp/2.0/mathmap/new_template.c
/bin/install -D -m 644 opmacros.h $startdir/pkg/usr/share/gimp/2.0/mathmap/opmacros.h
cp -r examples $startdir/pkg/usr/share/gimp/2.0/mathmap/expressions
Last edited by Teld (2007-08-02 11:11:13)Looks good! One single suggestion:
. You don't need to repeat the depends in the makedepends area - every depend is automatically a makedepend, so you can remove the makedepends line. -
RFC: new PKGBUILD for odfpy
odfpy is a nice library for producing ODF documents with python. I've created a PKGBUILD for it, any comments before I submit it to the AUR?
# Contributor: Joel Schaerer <[email protected]>
pkgname=odfpy
pkgver=0.7
pkgrel=1
pkgdesc="A complete API for OpenDocument in Python"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfpy"
license=('GPL')
depends=('python')
source=(http://opendocumentfellowship.com/files/odfpy-${pkgver}.tgz)
md5sums=('cea1c5bf445d3eeacca23f3de5ac0f94')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
python setup.py build
python setup.py install --prefix=${pkgdir}/usrsvn version ones from the site:
odfpy
pkgname=odfpy
pkgver=442
pkgrel=2
pkgdesc="A complete API for OpenDocument in Python"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfpy"
license=('GPL')
depends=('python')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odfpy/trunk"
_svnmod="odfpy"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
python setup.py build
python setup.py install --root=${startdir}/pkg
rm -rf ${startdir}/src/${_svnmod}-build
odftools
pkgname=odftools
pkgver=324
pkgrel=2
pkgdesc="a set of conversion tools for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odftools"
license=('GPL')
depends=('python')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odftools/trunk"
_svnmod="odftools"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co ${_svntrunk} ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
find . -type d -name '\.svn' -exec rm -rf {} \;
cd ${startdir}/src/${_svnmod}-build
install -d ${pkgdir}/usr/{bin,share/man/man1}
make
make PREFIX=${pkgdir}/usr install
rm -rf ${startdir}/src/${_svnmod}-build
odf2html
pkgname=odf2html
pkgver=349
pkgrel=2
pkgdesc="a set of conversion tools for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odftools"
license=('GPL')
depends=('libxslt')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/html2odf/trunk"
_svnmod="odf2html"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
install -d ${pkgdir}/usr/share/odftools/xsl
make
install -m 644 html2odf-complete.xsl \
${pkgdir}/usr/share/odftools/html2odf-complete.xsl
install -m 644 html2odf.xsl \
${pkgdir}/usr/share/odftools/html2odf.xsl
cp -r xsl/*.xsl ${pkgdir}/usr/share/odftools/xsl
chmod 0644 ${pkgdir}/usr/share/odftools/xsl/*.xsl
rm -rf ${startdir}/src/${_svnmod}-build
odfviewer
pkgname=odfviewer
pkgver=350
pkgrel=2
pkgdesc="Cross-platform viewer for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfviewer"
license=('GPL')
depends=('xulrunner')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odfviewer/trunk"
_svnmod="odfviewer"
build() {
cd ${startdir}/src
[ -d ${_svnmod}-build ] && rm -rf ${_svnmod}-build
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
find . -type d -name '\.svn' -exec rm -rf {} \;
install -d ${pkgdir}/opt/odfviewer
cp -r * ${pkgdir}/opt/odfviewer
install -D -m 755 ${startdir}/odfviewer ${pkgdir}/usr/bin/odfviewer
rm -rf ${startdir}/src/${_svnmod}-build
script of odfviewer
#!/bin/sh
cd /opt/odfviewer
xulrunner application.ini $@
Last edited by superkevjr (2008-06-04 12:45:23) -
Hello all,
I was searching for a driver for my ricoh webcam (05ca:1870) in my hp pavilion dv1000.
I know that here http://bitbucket.org/ahixon/r5u87x/ there's a user space tool manager cameras based on Ricoh R5U87x chipsets though uvcvideo, but my webcam did not work (no /dev/video0).
But searching a bit more i found this http://www.palmix.org/r5u870-en.html, here there's an update for the old r4u870 driver to build with the 2.6.30 kernel (32 and 64 bits). I modified the PKGBUILD in http://aur.archlinux.org/packages.php?ID=15226.
The package is builded and installed ok, but after I activate the module (with modprobe r5u870) and tested with gstreamer (gst-launch-0.10 v4l2 ! ffmpegcolorspace ! autovideosink) it only capture one image and then gst-launch-0.10 shows a bunch of:
(gst-launch-0.10:31682): GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed
I want to know if someone has this type webcam and can try this packages, and of course modify the PKGBUILD to add support both i686 and x86_64.
If someone made it work please send me how.
# Contributor: Alessandro Sagratini <[email protected]>
# Contributor: Matias De la Puente <[email protected]>
_kernver=2.6.30-ARCH
pkgname=r5u870
pkgver=0.11.3
pkgrel=1
pkgdesc="Linux device driver for Ricoh R5U870 OEM cameras."
arch=('i686')
url="http://www.palmix.org/r5u870-en.html"
license=('GPL2')
install=r5u870.install
depends=('kernel26>=${_kernver}')
source=(http://www.palmix.org/download/r5u870_k2.6.30_i386.tar.bz2)
md5sums=('8f285c1bc28a6dc32835d1973f2d7b6c')
build() {
cd $startdir/src/$pkgname
sed -i -e 's/\/sbin\/depmod -a//g' Makefile
make || return 1
#Install kernel module
install -D -m644 usbcam/usbcam.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/media/video/usbcam.ko
install -D -m644 r5u870.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/media/video/r5u870.ko
#Install firmwares
for i in *.fw; do
install -D -m 644 $i $startdir/pkg/lib/firmware/$i
done
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/r5u870.installI copied r5u870.install from the aur package, then tried your PKGBUILD, only modifying arch to x86_64. Got a make error....
make[1]: Entering directory `/usr/src/linux-2.6.30-ARCH'
CC [M] /home/firecat53/src/webcam/src/r5u870/r5u870.o
CC [M] /home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_dev.o
CC [M] /home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.o
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c: In function 'usbcam_v4l_ioctl':
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1163: warning: unused variable 'udp'
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c: At top level:
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1199: error: unknown field 'compat_ioctl' specified in initializer
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1199: error: 'v4l_compat_ioctl32' undeclared here (not in a function)
make[3]: *** [/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/home/firecat53/src/webcam/src/r5u870/usbcam] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/firecat53/src/webcam/src/r5u870] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-ARCH'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Any ideas?
Scott -
Need New Camera for Vacation (Please Read)
This summer I am going out West and going to Teton and Yellowstone National Parks. As you may know there is plenty of beautiful sceneries, and wildlife to enjoy in this part of the U.S. So I am wanting to take some of it back with me and show my family some of the great pictures I took. Last year I went and got to see many things that my old camera couldn't focus or zoom in good enough. So I have made the decision to go camera looking again. I'm looking for a camera that can zoom fairly well that doesn't get all fuzzy. I'm a pretty big guy and my hands are quite large, so I'm not looking for one of those little cameras that fit in the palm of your hand. I need something that where I push down the button and everything will remain steady, and I'm looking around in the price range of $200-$250 dollars. If anybody can help on giving some recommendations, I will be forever thankful.
ThanksNo, I actually don't know anybody that has a DSLR. I've decided that's not what I needed. I'm by far no professional photographer and for me to spend that much money for a used or older camera, when I only will use it once or twice a year would be ridiculous. I took some pretty good pictures last year when I went out west and even won a picture contest with the little Canon Powershot my aunt had given me when she bought her new camera. I was just thinking about possibly getting something new because 1) I have lost my old camera 2) I was wanting something with a little more zoom. I have been researching and CNET and alot of other reviews that I have read say that the Sony Cybershot DSC-H20B is really good camera for my price range. Anybody got any comments on the Sony Cybershot DSC-H20B?
-
New look for site; please comment
Hi there.
My question concerns (new look)
http://www.sincro.co.za/new-test.php
and
http://www.sincro.co.za
I have changed the background from white to gray and also
changed the
colour of the text.
My wife says the new look is very dull. Ignore the menu and
other graphics,
but just teel me what you think about the general look &
feel. You are
welcome to make suggestions.
Regards,
DeonHello there,
Now, I know it's not always easy accepting peoples feedback
but the thing you must remember is that there must be a reason for
saying it - it's also a lot to personal preference.
Personaly, I wouldn't use the grey, stick with bold colors,
for example, black or white. The menu doesn't really go with any
other colors on the page - try to stick with different shades of
the same color or perhaps similar colors. One thing which I really
am not very convinced with is the gradients in the menu (when
open), they make it look very amaturish. Also, try to combine the
three images at the top of the page.
I'd be more than willing to help you in whatever way (graphic
editing, etc).
All the best,
Kristopher (UK). -
As my first foray into PKGBUILDing, I figured I'd try one for a simple perl module. This will be needed by backuppc, which I'll be attempting next.
see below
I'm unsure if the makedepends are necessary, and `namcap -i` said that the perl dependency was unneeded. I'd appreciate any feedback.
Last edited by sinecure (2007-10-10 12:09:53)Here's my final version of the PKGBUILD, now I'll read up on how to submit it.
# Contributor: "David J. Weller-Fahy" <[email protected]>
# Maintainer: "David J. Weller-Fahy" <[email protected]>
pkgname=perl-file-rsyncp
pkgver=0.68
pkgrel=2
pkgdesc="Perl/CPAN Module File::RsyncP : a simple rsync client"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~cbarratt/File-RsyncP"
source=("http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/File-RsyncP-$pkgver.tar.gz")
license=('GPL2')
provides=('file-rsyncp')
depends=('perl>=5.8.8-6' 'glibc')
makedepends=('make' 'gcc' 'findutils')
options=('docs' '!emptydirs')
build() {
cd $startdir/src/File-RsyncP-$pkgver || return 1
eval `perl -V:archname` || return 1
perl Makefile.PL \
INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} \
|| return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
find $startdir/pkg -name '.packlist' -exec rm '{}' \; || return 1
find $startdir/pkg -name '*.pod' -exec rm '{}' \; || return 1
md5sums=('ed47c5ef7ff835415692f18137cb0cf9')
Last edited by sinecure (2007-10-11 08:49:25) -
PKGBUILD for transmission-remote-gtk new since move to git - help?
Transmission-remote-gtk just moved to git from svn and I made a new PKGBUILD for it;
# Maintainer: Aleksey Frolov <[email protected]> [ru]
# Contributor: PitBall
_pname=transmission-remote-gtk
pkgname=${_pname}-git
pkgver=20120203
pkgrel=1
pkgdesc="GTK client for remote management of the Transmission BitTorrent client, using its HTTP RPC protocol"
arch=(i686 x86_64)
license=('GPL2')
depends=('git' 'hicolor-icon-theme' 'geoip' 'libproxy' 'libunique' 'json-glib' 'libnotify' 'gconf' 'desktop-file-utils' 'curl')
makedepends=('intltool')
conflicts=('transmission-remote-gtk')
install=${pkgname}.install
options=('!libtool')
url="http://code.google.com/p/transmission-remote-gtk"
_gittrunk="https://code.google.com/p/transmission-remote-gtk/"
_gitmod=${pkgname}
build() {
cd ${srcdir}
# GIT checkout
if [[ -d ${_gitmod} ]]; then
(cd ${_gitmod} && git pull )
else
git clone ${_gittrunk} ${_gitmod}
fi
rm -rf ${srcdir}/${_gitmod}-build
cp -r ${srcdir}/${_gitmod} ${srcdir}/${_gitmod}-build
cd ${srcdir}/${_gitmod}-build
# Configure
./autogen.sh
./configure \
--prefix=/usr
# --prefix=/usr \
# --disable-schemas-install \
# --with-gconf-schema-file-dir=/usr/share/gconf/schemas
# Compile
make
# Install
make DESTDIR=${pkgdir} install
# License & Authors
install -dm755 ${pkgdir}/usr/share/licenses/${_pname}
ln -sf /usr/share/licenses/common/GPL2/license.txt ${pkgdir}/usr/share/licenses/${_pname}/LICENSE
install -Dm644 AUTHORS ${pkgdir}/usr/share/doc/${_pname}/AUTHORS
When doing a pacman -U 'pkgname' I get about 20 file "exists in filesystem". With my limited knolwedge I don't know how to fix this. pacman -Uf does it but is an ugly solution. What can I do with the PKGBUILD or maybe recommend users to uninstall the svn version first?
Furthermore; there was a bit of code looking for the .svn directory
# SVN checkout
if [[ -d ${_svnmod}/.svn ]]; then
(cd ${_svnmod} && svn up -r $pkgver)
else
svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
fi
which I changed to this;
# GIT checkout
if [[ -d ${_gitmod} ]]; then
(cd ${_gitmod} && git pull )
else
git clone ${_gittrunk} ${_gitmod}
fi
The prupose is to look for previous source and not download it all again, just get the changes. svn up -r is quite straight forward but git pull, I find is not. I'd really appreciate some pointers on this.
By the way, it compiles just fine and with pacman -Uf it works, I'd just like to make a proper PKGBUILD.
Last edited by swanson (2012-02-03 22:35:17)Yes, that's the seems to be the easiest and cleanest way to go. Here's the new transmission-remote-gtk git version in AUR;
https://aur.archlinux.org/packages.php?ID=56377 -
Will there be a new update for ipod 5
I got the ipod 5 like 7-8 months ago and i have been updating every time so i was wondering if there well be a new update for it please answer as soon as possible thanks
Sorry, no one here will know if/when a newer version of iOS would be released.
-
[solved] new abs PKGBUILD for package kernel26...old kernel?
I was looking into the new PKGBUILD in the /var/abs/core/kernel26 folder, as I wanted to update my custom kernel. I was editing the new PKGBUILD when I saw something weird...references to kernel.org files and archlinux.org patch seems to be same as the 2.6.37 version. Is _basekernel value not updated? Am I wrong?
Take a look:
new PKGBUILD (I copied only relevant lines):
_basekernel=2.6.37
pkgver=${_basekernel}
pkgrel=6
_patchname="patch-${pkgver}-4-ARCH"
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
now...these is exactly the same as PKGBUILD for 2.6.37. But the new files are:
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.1.tar.bz2
ftp://ftp.archlinux.org/other/kernel26/patch-2.6.37.1-1-ARCH.bz2
If I am right, someone has to update variable values...
TIA
Gemon
Last edited by gemon (2011-02-21 22:17:23)well...I had time to check so...this is the content for the PKGBUILD after I run abs yesterday (pasted only relevant lines):
# $Id: PKGBUILD 109724 2011-02-12 08:01:06Z tpowa $
pkgbase="kernel26"
pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
_kernelname=${pkgname#kernel26}
_basekernel=2.6.37
pkgver=${_basekernel}
pkgrel=6
_patchname="patch-${pkgver}-4-ARCH"
this is the one I run tonight...looks updated now
# $Id: PKGBUILD 110322 2011-02-18 20:13:49Z tpowa $
pkgbase="kernel26"
pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
_kernelname=${pkgname#kernel26}
_basekernel=2.6.37
pkgver=${_basekernel}.1
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
now patch filename and kernel sources correctly resolve to the latest ones.
but believe me, right after I had the 2.6.37.1-arch kernel, the abs PKGBUILD was outdated...probably it is updated after kernel package is released. doesn't matter
all in all...now it's ok
Gemon -
Hdf4 and pyhdf AUR PKGBUILDS for review
pyhdf is a Python interface to the HDF4 library. HDF4 is a scientific data file format. pyhdf links to the static libs built by the HDF4 package. I decided to split HDF4 out into its own package because someone else might want to link to these libraries, or use the numerous HDF4 utilities that accompany them. There is an hdf5 package in the AUR already, but hdf5 coexists with hdf4, rather than replacing it.
Here is the HDF4 PKGBUILD:
# Contributor: David Scholl <djscholl>
pkgname=hdf4
pkgver=2r1
pkgrel=1
pkgdesc="General purpose library and file format for storing scientific data."
url="http://hdf.ncsa.uiuc.edu/hdf4.html"
license="custom"
depends=('zlib' 'libjpeg')
makedepends=(gcc-fortran)
source=(ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF4.$pkgver.tar.gz ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/configure)
md5sums=('9082c6fa913b9188452fa6c5217e1573' '845b0e1a20c0a969fca386b8830236ed')
build() {
cp ./configure $startdir/src/HDF4.$pkgver
cd $startdir/src/HDF4.$pkgver
./configure --prefix=/usr F77=gfortran FFLAGS=-ffixed-line-length-0
make || return 1
make prefix=$startdir/pkg/usr install
mkdir -p $startdir/pkg/usr/share/licenses/hdf4
cp $startdir/src/HDF4.$pkgver/COPYING $startdir/pkg/usr/share/licenses/hdf4
HDF4 was originally built with commercial Fortran 77 compilers, although g77 worked too. Since g77 is gone, I built it with gfortran. I encountered a couple of issues with the "make check" command, which compiles and runs tests of the libraries and utilities. The main package builds without errors using plain gfortran. However, the test code contains lines longer than 72 characters, so I had to add the FFLAGS=-ffixed-line-length-0 option to the configure script to be able to build the tests. When I manually do
cd $startdir/src/HDF4.$pkgver
make check || return 1
all of the tests are built and passed without errors. However, when I put these two lines into the build script, the tests fail as follows:
============================
HDF-SD C interfaces tests
============================
srcdir="." ./hdftest > hdfout.new
make[2]: *** [check] Error 1
make[2]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf/libsrc'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf'
make: *** [check-recursive] Error 1
==> ERROR: Build Failed. Aborting...
I would like to include the tests in the build, because it's bad when your data gets mangled. However, I don't know how to get the tests to run in the build script. If anyone has any suggestions I would appreciate them.
HDF4 is released under a license which resembles other Open Source licenses I have read, so I treated it as a custom license. The HDF4 package can be built with an optional compression library called szip, which is not an Open Source product. szip is available under non-commercial and commercial licenses, but prospective commercial users must contact the licensing agent. The AUR doesn't have a way to make that clear to prospective users, so I left out szip.
Here is the PKGBUILD for pyhdf:
# Contributor: David Scholl <djscholl>
pkgname=pyhdf
pkgver=0.7.3
pkgrel=1
pkgdesc="Python bindings for the HDF library."
url="http://pysclint.sourceforge.net/pyhdf/"
license="Python"
depends=('python' 'python-numeric' 'zlib' 'libjpeg')
makedepends=(hdf4)
source=(http://dl.sourceforge.net/pysclint/$pkgname-0.7-3.tar.gz)
md5sums=('f55aa19e61cf6501f436e27783098000')
build() {
cd $startdir/src/$pkgname-0.7-3
sed -i '/#extra_compile_args=["-DNOSZIP"],/s/#//' setup.py
sed -i '/libraries = ["mfhdf", "df", "jpeg", "z", "sz"]/s/libraries/#libraries/' setup.py
sed -i '/#libraries = ["mfhdf", "df", "jpeg", "z"]/s/#//' setup.py
python setup.py install --root=$startdir/pkg
pyhdf assumes the availability of szip by default, so its setup.py must be hacked to build it without szip. I do this with three sed commands, following the instructions in the INSTALL file and the comments in the setup.py. The sourceforge page for pyhdf describes it as being released under the Python license, but there is no copyright file included with the source distribution, nor did I find one on the project website.
If anyone has corrections or improvements to suggest, please post.I have done some further digging into the "make check" issue, but I don't know enough to solve it. I'm hoping someone will be able to figure out a patch or work-around that I can use.
The error message announces leaving the src/HDF4.2r1/mfhdf/libsrc directory. We can find the first part of the error message in the Makefile:
less -N src/HDF4.2r1/mfhdf/libsrc/Makefile
729 check:
730 @echo "============================"
731 @echo "HDF-SD C interfaces tests"
732 @echo "============================"
733 srcdir="$(srcdir)" ./hdftest > hdfout.new
734 @cmd="$(DIFF) hdfout.new $(srcdir)/hdfout.sav";
It appears to me that line 733 bombs when "make check" is run from the build script, and the diff command in 734 doesn't get a chance to run.
The hdfout.new from the build script "make check" ends in
*** UNEXPECTED VALUE from second SDstart is 393216 at line 61 in tsd.c
num_err == 1
The file src/HDF4.2r1/mfhdf/libsrc/hdfout.sav ends in
num_err == 0
less -N src/HDF4.2r1/mfhdf/libsrc/tsd.c
24 #define FILE_NAME "sdtest.hdf" /* data file to test ID types */
59 /* Create a protected file */
60 fid = SDstart(FILE_NAME, DFACC_CREATE);
61 VERIFY(fid, FAIL, "second SDstart");
Running "make check" manually:
$ ls -l sdtest.hdf
--w------- 1 dscholl dscholl 2503 2006-08-13 09:45 sdtest.hdf
Running "make check" from within the build script:
$ ls -l sdtest.hdf
-rw------- 1 dscholl dscholl 2502 2006-08-13 09:48 sdtest.hdf
I'm not a C programmer, but it appears to me that the hdftest binary is trying to create a read-protected --w------- file, and actually creating a -rw------- file. When it tries to read it, it generates an error message and the Makefile stops running. What is different about the build script environment that would cause this difference in file creation? -
[SOLVED] EurKEY PKGBUILD request for comments
Hi, I just finished a PKGBUILD for EurKEY "European Keyboard Layout". It installs and removes fine on my system, and I took care to respect the packaging standards, but before submitting it to AUR I would like to get any comments/suggestions.
PKGBUILD
# Maintainer: Christoph Roeper <cr (at) roeper (dot) biz>
pkgname=eurkey
pkgver=1.1
pkgrel=1
pkgdesc="The European Keyboard Layout"
arch=('any')
url="http://eurkey.steffen.bruentjen.eu/"
license=('GPL3')
depends=('xkeyboard-config' 'sed' 'gawk')
install="$pkgname.install"
source=(http://eurkey.steffen.bruentjen.eu/download/debian/binary/eurkey.deb)
md5sums=('8da8472f8f8d30baaa6a50145264024b')
package() {
cd "$srcdir"
ar x $pkgname.deb
tar xzf data.tar.gz -C "$pkgdir/"
cd "${pkgdir}"
# euro on '5', swap with pound
awk='\
BEGIN { fix = 0 } \
if ( $2 == "<AE04>" ) { $7="sterling,"; fix = 1 } \
else if ( $2 == "<AE05>" ) { $7="EuroSign,"; fix = 1 } \
if ( fix == 1 ) { printf "%11s %s %s %s%16s%19s%22s%21s %s %s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9,$10; fix = 0 } \
else { print } \
file="usr/share/X11/xkb/symbols/eurkey"
tmpfile="$file".`date +%FT%T`.temp
awk -- "$awk" $file > $tmpfile
cat $tmpfile > $file
rm $tmpfile
pkgname.install
post_install() {
# Installs the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
str=" <layout>\n\
<configItem>\n\
<name>eurkey</name>\n\
<shortDescription>EUR</shortDescription>\n\
<description>EurKEY</description>\n\
<languageList>\n\
<iso639Id>cat</iso639Id>\n\
<iso639Id>dan</iso639Id>\n\
<iso639Id>eng</iso639Id>\n\
<iso639Id>est</iso639Id>\n\
<iso639Id>fao</iso639Id>\n\
<iso639Id>fin</iso639Id>\n\
<iso639Id>ger</iso639Id>\n\
<iso639Id>gre</iso639Id>\n\
<iso639Id>gsw</iso639Id>\n\
<iso639Id>ita</iso639Id>\n\
<iso639Id>lav</iso639Id>\n\
<iso639Id>lit</iso639Id>\n\
<iso639Id>nld</iso639Id>\n\
<iso639Id>nor</iso639Id>\n\
<iso639Id>por</iso639Id>\n\
<iso639Id>spa</iso639Id>\n\
<iso639Id>swe</iso639Id>\n\
</languageList>\n\
</configItem>\n\
</layout>\n\
</layoutList>"
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if [ ! -f "$file" ]; then
echo "File $file is not a regular file (skipped)"
elif [ $(grep -ci eurkey "$file") -ne 0 ]; then
echo "File $file already constains eurkey (skipped)"
else
echo "processing $file"
sed -i "s~</layoutList>~$str~" "$file"
fi
done
ENDSUDO
pre_remove() {
# Removes the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
for file in {/etc/vconsole.conf,/etc/X11/xorg.conf.d/*keyboard*}; do
if [ -f $file ]; then
[ `grep -ci '^\s*[^#].*eurkey' $file` -ne 0 ] && echo -e "Cannot completely remove EurKEY since it's still configured in $file.\nPlease remove it manually or use the settings manager." && exit 1
fi
done
exit 0
ENDSUDO
post_remove() {
# Removes the EurKEY layout.
if test "$EUID" = 0; then SUDO=; else SUDO=sudo; fi
exec $SUDO bash /dev/stdin "$@" <<'ENDSUDO'
set -e
awk='
BEGIN { output = 1 ; buffer = "" }
$0~/<layout>/ { output = 0 ; deleteSection = 0 }
output == 1 { print $0 }
$0~/<\/layout>/ { output = 1 ; buffer = buffer $0 ; if (deleteSection == 0) print buffer ; buffer = "" }
$0~/<name>eurkey<\/name>/ { deleteSection = 1 }
output == 0 { buffer = buffer $0 "\n" }
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if test -f "$file"; then
tmpfile="$file".`date +%FT%T`.temp
echo "processing $file"
awk -- "$awk" $file > $tmpfile
cat $tmpfile > $file
rm $tmpfile
fi
done
ENDSUDO
'sed' and 'awk' are neither build nor run-time dependencies, both are install dependencies, but I did not find a proper option for that.
The (un-)install-scripts are taken from the Debian source, however with deb-packages it is obviously possible to abort pre/post_remove on failure (here used if the keyboard layout is still in use => no uninstall). I did not find a proper way to accomplish this with PKGBUILD install scripts.
Both scripts a rather long, but in other review requests forum veterans preferred to have scripts posted here instead of a link to AUR or pastebin. If it's nevertheless wrong I will relocate the scripts.
Thanks in advance.
Last edited by roepi (2014-03-17 17:42:44)If you still want to modify the XML, I would use xmlstarlet instead of awk/sed. I haven't tested the following scripts so they will probably need some debugging but they should give you a general idea of what I would do.
The post remove script would be reduced to:
set -e
# xpath selector to select layouts that are named eurkey
xpath='/xkbConfigRegistry/layoutList/layout/configItem/name[text()="eurkey"]/../..'
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
[[ -f "$file" ]] && xml ed --inplace -d "$xpath" "$file"
done
And the post install script would become:
set -e
xpath='/xkbConfigRegistry/layoutList/layout/configItem/name[text()="eurkey"]'
for file in /usr/share/X11/xkb/rules/{base,evdev}.xml; do
if [[ ! -f "$file" ]]; then
echo "File $file is not a regular file (skipped)"
elif xml sel -t -c "$xpath" $file >/dev/null; then
echo "File $file already constains eurkey (skipped)"
else
echo "processing $file"
xml ed -P -L \
-s /xkbConfigRegistry/layoutList -t elem -n layoutTMP -v '' \
-s //layoutTMP -t elem -n configItem -v '' \
-s //layoutTMP/configItem -t elem -n name -v 'eurkey' \
-s //layoutTMP/configItem -t elem -n shortDescription -v 'EUR' \
-s //layoutTMP/configItem -t elem -n description -v 'EurKEY' \
-s //layoutTMP/configItem -t elem -n languageList -v '' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'cat' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'dan' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'eng' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'est' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'fao' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'fin' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'ger' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'gre' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'gsw' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'ita' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'lav' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'lit' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'nld' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'nor' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'por' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'spa' \
-s //layoutTMP/configItem/languageList -t elem -n iso639Id -v 'swe' \
-r //layoutTMP -v layout \
"$file"
fi
done -
My dad and I have shared an iTunes account for years and I just created a new apple id but I have no Idea how to get all those purchases to this new account. Help please?
The old Apple ID (presumably your dads) owns those songs and your new Apple ID does not. However, your dad can authorize your iD to use the songs by going to Store > Authorize This Computer from your iTunes menu and entering his Apple ID and password.
-
I have an Apple ID and trying to sign in for the 1st time on iTunes. When I do, I get the message: "This Apple ID has not been used with the iTunes Store. Please review your account information." When I do, it brings me to the same AppleID login window, and I get stuck in the same loop. I never get to the following screen to enter my account info. What's going on?? This is MADDENING!
If you want to use it, click Review and check your account information. Or you could contact the store support staff if you are concerned at http://www.apple.com/emea/support/itunes/contact.html for further help.
Maybe you are looking for
-
Trying to install iTunes 10.5 on Windows 7
I have the 64-bit version of Windows 7 and everytime I try updating to iTunes 10.5 I get this error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT.type="1fc8b3b9a1e18e3b".processorArchitecture="x86"'.Please refer t
-
Hello! Really sorry! Originally this APP software free game, only peace of mind to let children play, but a recent credit card reconciliation only to find the charges and found that the game content is not completely free, content or Payplay games, c
-
Buying books in different languages?
I am living in austria but would like to buy books in itunes in english, how do changes settinsgs that i get results in english?
-
Hi I have a table called PRODUCTS ,I want store the data from table to flat file using utl_file and flat file to table .Please any one how to do that and using oracle 8.1.7 SQL> desc products; Name Null? Type PROD_ID NOT NULL NUMBER(6) PROD_NAME NOT
-
M55 Windows 7 Home Premium 64 bit
I recently upgraded my m55 8810-94U from Windows XP Professional to Windows 7 Home Premium. Upgrade went fine, system boots to Windows 7. Shortly after launching any program, my monitor goes black and loses signal. The actually system is still on