On Fri, Aug 10, 2012 at 7:47 AM, Axilleas Pi <axilleaspi@ymail.com> wrote:
pkgdesc="Mime is a command line backup program written in Python" arch=('i686' 'x86_64') since it's a python app, arch should be 'any'
url="http://http://code.google.com/p/mime-backup/" There's a double http:// :P
license=('GPL3') depends=('python2') source=(http://mime-backup.googlecode.com/files/$pkgname-$pkgver.tar.gz) md5sums=('9f6c3a33bffde6126b7a7bd85d38e7c5')
build() { cd $startdir/src/$pkgname-$pkgver chmod 644 $startdir/src/$pkgname-$pkgver/mime.conf.sample python2 setup.py install --root=$pkgdir || return 1 || return 1 is not needed any more, pacman handles it. Rename startdir to srcdir. Also it's a good practice to place brackets {} around pkgdir and srcdir, or place the whole path in double quotes.
Thanks Axillea, I fixed according to your recommendations: # Contributor: Leonidas Spyropoulos <leonidas at spyropoulos dot eu> pkgname=mime pkgver=2.0.0 pkgrel=1 pkgdesc="Mime is a command line backup program written in Python" arch=('any') url="http://code.google.com/p/mime-backup/" license=('GPL3') depends=('python2') source=(http://mime-backup.googlecode.com/files/$pkgname-$pkgver.tar.gz) md5sums=('9f6c3a33bffde6126b7a7bd85d38e7c5') build() { cd ${srcdir}/$pkgname-$pkgver chmod 644 ${srcdir}/$pkgname-$pkgver/mime.conf.sample python2 setup.py install --root=${pkgdir} } -- Caution: breathing may be hazardous to your health. #include <stdio.h> int main(){printf("%s","\x4c\x65\x6f\x6e\x69\x64\x61\x73");}