Hello, first of all, is should be something like "cp zerochan $pkgdir/usr/local/bin/zerochan". Otherwise the build will fail. Second, I think install is better than cp in this occasion, since you can set the permission bits while copying. For example install -m755 zerochan $pkgdir/usr/local/bin/zerochan Also, all the copying should probably go in the package() function and not in build(). If you want, take a look at this[1] very simple PKGBUILD of mine. Just a few friendly pointers, Chris Sakalis [1] https://aur.archlinux.org/packages/gi/gimp-plugin-wavelet-sharpen/PKGBUILD On Tue, May 8, 2012 at 7:16 PM, Jorge Barroso <jorge.barroso.11@gmail.com> wrote:
Thanks Jesse :) I've already installed it on my PC and it works, so I've started making the PKGBUILD with your help and the steps I did. I've wrote all the information, and by now that's what I have:
# Maintainer: Jorge <jorge.barroso.11@gmail.com>
pkgname=linux-manga-downloader pkgver=0.2.0.1-5 pkgrel=1 pkgdesc="A manga downloader for linux, it allows fownloads from many English and Spanish websites" arch=('any') url="http://code.google.com/p/linux-manga-downloader/" license=('GPL3') depends=('libnotify' 'gtkdialog' 'wget' 'lynx' 'zenity') install= source=($pkgname-$pkgver.tar.gz)
--Well, about the build, I'm not sure (0% sure) but I think it could be something like that:
cd "$srcdir/$pkgname_$pkgver/usr/local/bin" chmod +x 4chan chmod +x animea chmod +x danboru chmod +x futahentai chmod +x ge-2 chmod +x lmd chmod +x lmd-fu chmod +x mangafox chmod +x mangareader chmod +x mangashare chmod +x mcanime chmod +x pown chmod +x submanga chmod +x zerochan
cp 4chan /usr/local/bin/4chan cp animea /usr/local/bin/animea cp danboru /usr/local/bin/danboru cp futahentai /usr/local/bin/futahentai cp ge-2 /usr/local/bin/ge-2 cp lmd /usr/local/bin/lmd cp lmd-fu /usr/local/bin/lmd-fu cp mangafox /usr/local/bin/mangafox cp mangareader /usr/local/bin/mangareader cp mangashare /usr/local/bin/mangashare cp mcanime /usr/local/bin/mcanime cp pown /usr/local/bin/pown cp submanga /usr/local/bin/submanga cp zerochan /usr/local/bin/zerochan
and well... the same with the /usr/share directories. I've although thought writing that on an install script, but then I don't know what to write on "build"
I think that I shouldn't write directly /usr/local/bin, but I don't know the "$variable" name of the directories...
Thanks again jesse, and hope someone helps me to finish with that first package ;)