$startdir/pkg -> $pkgdir $startdir/src -> $srcdir --- Lucas Saliés Brum http://sistematico.org lsbrum @ irc.freenode.org 2009/4/8 Federico Manganelli <ml@xxxxxxxxxxxxx> > > PKGBUILD: > > # $Id: PKGBUILD 1267 2008-05-03 04:20:25Z eric $ > # Maintainer: damir <damir@xxxxxxxxxxxxx> > #Contributor: Kevin Edmonds <edmondskevin@xxxxxxxxxxx> > > pkgname=libmtp > pkgver=0.3.7 > pkgrel=1 > pkgdesc="library implementation of the Media Transfer Protocol" > arch=("i686" "x86_64") > url="http://libmtp.sourceforge.net" > license=("LGPL") > depends=("libusb") > source=(" > http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz > ") > options=('!libtool') > install=$pkgname.install > > build() { > cd $startdir/src/$pkgname-$pkgver > ./configure --prefix=/usr > make || return 1 > make DESTDIR=$startdir/pkg install > /bin/install -D -m0644 libmtp.rules \ > $startdir/pkg/etc/udev/rules.d/52-libmtp.rules > /bin/install -D -m0644 libmtp.fdi \ > $startdir/pkg/usr/share/hal/fdi/information/20thirdparty/libmtp.fdi > > } > > md5sums=('897c3a84a8bdd78f003820ed5f7fa6cf') > > > libmtp.install: > > post_install() { > udevadm control --reload-rules > /bin/cat <<THEEND > NOTE > ---- > Add your user to group 'camera' to use MTP based devices. > THEEND > } > > op=$1 > shift > $op $* > > > > >