No problem.
>*From the man page: "sed - stream editor for filtering and transforming text".*Basically it's a non-interactive text editor.
sed 's|usr/local|usr|' -i "${pkgdir}/usr/bin"/* changes every
occurrence of "usr/local" with "usr" in all the files in
${pkgdir}/usr/bin. But only the first one in every line (I think). I
assume it's needed because you app by default expects to be in
/usr/local/bin while you install it in /usr/bin.
I may be wrong, but I think that the last echos will not be executed.
If you want to display some messages after installation, use an
install script.
On a side note, please don't break the threads by. Also, most email
clients can hide the quoted text, so no problem there either.
And on another side note, sorry for top posting in my previous reply,
I didn't notice it.
--Chris Sakalis
--------------------------------------------------------------------------------
Well these should go to the install file. Create a file called
ldm.install and set install=ldm.install in the PKGBUILD. Take a lookt at
file /usr/share/pacman/proto.install, you should only needd the
post_install function and put those echos in there :D
PKGBUILD is used to build a pkgname-version-pkgrel.pkg.tar.xz package
that you install with pacman. Pacman then reads the .install file from
that package and does what it tells it to do and copies the files to the
system. Most people are lilely to just install this from the AUR, so
they would see that message. But in case say someone sends the redy
built pacman package to a frind the friend would not saee that message,
but if it is in install file he will.
You are also missing the md5sums variable from the package. Run
makepkg -g in the directoey where the PKGBUILD is and copy the output
into the PKGBUILD.
(I myself have an alias setup fot that. "makesum='makepkg -g >>
PKGBUILD'" this gives me a command makesum that automatically appends
the md5sums to the end of the PKGBUILD)
Sed can do a lot of things. Basicly it reads text, does something to it
and slips the mangled text out. 's|original|new|' for example would
replaces every single word original with the word new.
I think you should read these:
https://wiki.archlinux.org/index.php/Pkgbuildhttps://wiki.archlinux.org/ind…
And here is a werty comprehensive guide to
sed.http://www.grymoire.com/Unix/Sed.html
I myself can only use the replace command 's' XD
--------------------------------------------------------------------------------
Ok, I got it!! And it works making sudo pacman -U etc.
This is the final PKGBUILD:
# Maintainer: Jorge <jorge.barroso.11(a)gmail.com>
pkgname=linux-manga-downloader
pkgver=('0.2.0.1')
_rawversion=('0.2.0.1')
pkgrel='5Beta'
pkgdesc="A manga downloader for many English and Spanish websites."
arch=('any')
url="http://code.google.com/p/${pkgname}/"
license=('GPL3')
depends=('libnotify' 'gtkdialog' 'wget' 'lynx' 'zenity')
install='LMD.install'
md5sums=('a91ccb44877c30e3193292a3ee9cc942')
source=(http://${pkgname}.googlecode.com/files/${pkgname}_0.2.0.1-5Beta_all…
package() {
cd "${srcdir}"
tar xf data.tar.gz
mkdir -p "${pkgdir}/usr/"
cp -r "${srcdir}/./usr/local/bin" "${pkgdir}/usr/bin"
cp -r "${srcdir}/./usr/share" "${pkgdir}/usr/share"
chmod +x "${pkgdir}/usr/bin"/*
sed 's|usr/local|usr|' -i "${pkgdir}/usr/bin"/*
sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/applications/LMD.desktop"
}
# vim:set ts=2 sw=2 et:
Thanks guys, thanks you two, this is my first package ever, even I
tried sometimes on fedora and ubuntu, this is the first package I
submit *-* so I'm like...
I don't know, so so happy of course :D your my heroes :D XD I'm just
18 and that was an important achievement. Well, I'll submit it right
now :D
I've uploaded the package here for to see it if you want->
https://rapidshare.com/files/3651110504/linux-manga-downloader-0.2.0.1-5Bet…
If you want to try it, see what I did, etc. Any feedback will be well received
Thanks you both you guys :D!!
Thanks to both you two Jesse and Chris, I won't copy the both replies here
to make the message shorter. I did at first what Chris told me about the
install option, I liked it, but, at least BY NOW, I'll use the chmod/copy
combination, because I'm not new, but I know less things than that I
thought, and I would like to learn little by little. Respect to Jesse's
message, I did it with your help, correcting some little details and I
think now it's correct :D I would like a little introduccion to "sed"
option, because I didn't know it, not a lot, but, as "cp" copies a
directory on another one, what makes "sed"? :) Thanks for your help, and
this is my PKGBUILD by now, hope it's correct ;)
# Maintainer: Your Name <youremail(a)domain.com>
pkgname=linux-manga-downloader
pkgver=0.2.0.1-5Beta
_rawversion=0.2.0.1
pkgrel=1
pkgdesc="A manga downloader for many English and Spanish websites"
arch=('any')
url="http://code.google.com/p/${pkgname}/"
license=('GPL3')
depends=('libnotify' 'gtkdialog' 'wget' 'lynx' 'zenity')
source=
http://code.google.com/${pkgname}/downloads/detail?name=${pkgname}_${pkgver…
)
package() {
cd "${srcdir}"
tar -xfzv data.tar.gz
mkdir -p "${pkgdir}/usr/"
cp -r "${srcdir}/./usr/local/bin" "${pkgdir}/usr/bin"
cp -r "${srcdir}/./usr/share" "${pkgdir}/usr/share"
chmod +x "${pkgdir}/usr/bin"/*
sed 's|usr/local|usr|' -i "${pkgdir}/usr/bin"/*
sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/applications/LDM.desktop"
}
echo "Now, been in your HOME directory, run: lmd -reconf and then run the
program ;) enjoy it."
echo "In some Websites, when downloading, the program says there was an
error with the last page of the chapter, don't worry, coding mistake, that
page was downloaded successfully"
# vim:set ts=2 sw=2 et:
The two "echo" at the end are to add two comments that I considered
important things to know :)
So... what do you thing about the PKGBUILD now? :)
The forked mutter window manager for the GNOME3 shellshape extension
isn't needed anymore in recent versions of the GNOME shell.
It would be nice if you delete it.
https://aur.archlinux.org/packages.php?ID=50256
Thanks,
Markus Unterwaditzer
=== Signoff report for [community-testing] ===
https://www.archlinux.org/packages/signoffs/
There are currently:
* 0 new packages in last 24 hours
* 0 known bad packages
* 0 packages not accepting signoffs
* 0 fully signed off packages
* 17 packages missing signoffs
* 1 package older than 14 days
(Note: the word 'package' as used here refers to packages as grouped by
pkgbase, architecture, and repository; e.g., one PKGBUILD produces one
package per architecture, even if it is a split package.)
== Incomplete signoffs for [community] (10 total) ==
* i3lock-2.4-2 (i686)
0/2 signoffs
* php-geoip-1.0.8-2 (i686)
0/2 signoffs
* php-memcache-3.0.6-3 (i686)
0/2 signoffs
* php-memcached-2.0.1-4 (i686)
0/2 signoffs
* xdebug-2.2.0RC2-1 (i686)
0/2 signoffs
* i3lock-2.4-2 (x86_64)
0/2 signoffs
* php-geoip-1.0.8-2 (x86_64)
0/2 signoffs
* php-memcache-3.0.6-3 (x86_64)
0/2 signoffs
* php-memcached-2.0.1-4 (x86_64)
0/2 signoffs
* xdebug-2.2.0RC2-1 (x86_64)
0/2 signoffs
== Incomplete signoffs for [unknown] (7 total) ==
* vicious-2.0.4-2 (any)
0/2 signoffs
* awesome-3.4.11-4 (i686)
0/2 signoffs
* mariadb-5.5.23-3 (i686)
1/2 signoffs
* virtualbox-modules-lts-4.1.14-1 (i686)
0/2 signoffs
* awesome-3.4.11-4 (x86_64)
0/2 signoffs
* mariadb-5.5.23-3 (x86_64)
1/2 signoffs
* virtualbox-modules-lts-4.1.14-1 (x86_64)
1/2 signoffs
== All packages in [community-testing] for more than 14 days (1 total) ==
* vicious-2.0.4-2 (any), since 2012-04-17
== Top five in signoffs in last 24 hours ==
1. foutrelis - 7 signoffs
2. allan - 5 signoffs
3. tomegun - 1 signoffs
Hi, I've been looking for a manga downloader in AUR repository, but I
didn't find the one I wanted, so I tried to make the package by myself and
upload it (http://code.google.com/p/linux-manga-downloader/).
There are just .deb and .rpm packages, but I extracted the package and
tried to make the installation mannualy, to see what should the 'build' do,
but I'm unable to install it, because what comes in the package are shell
scripts, the launcher and nothing else usefull... so I would like someone
to help me to make the PKGBUILD to install the program and upload it to aur.
Thanks in advance
=== Signoff report for [community-testing] ===
https://www.archlinux.org/packages/signoffs/
There are currently:
* 0 new packages in last 24 hours
* 0 known bad packages
* 0 packages not accepting signoffs
* 0 fully signed off packages
* 17 packages missing signoffs
* 1 package older than 14 days
(Note: the word 'package' as used here refers to packages as grouped by
pkgbase, architecture, and repository; e.g., one PKGBUILD produces one
package per architecture, even if it is a split package.)
== Incomplete signoffs for [community] (10 total) ==
* i3lock-2.4-2 (i686)
0/2 signoffs
* php-geoip-1.0.8-2 (i686)
0/2 signoffs
* php-memcache-3.0.6-3 (i686)
0/2 signoffs
* php-memcached-2.0.1-4 (i686)
0/2 signoffs
* xdebug-2.2.0RC2-1 (i686)
0/2 signoffs
* i3lock-2.4-2 (x86_64)
0/2 signoffs
* php-geoip-1.0.8-2 (x86_64)
0/2 signoffs
* php-memcache-3.0.6-3 (x86_64)
0/2 signoffs
* php-memcached-2.0.1-4 (x86_64)
0/2 signoffs
* xdebug-2.2.0RC2-1 (x86_64)
0/2 signoffs
== Incomplete signoffs for [unknown] (7 total) ==
* vicious-2.0.4-2 (any)
0/2 signoffs
* awesome-3.4.11-4 (i686)
0/2 signoffs
* mariadb-5.5.23-3 (i686)
1/2 signoffs
* virtualbox-modules-lts-4.1.14-1 (i686)
0/2 signoffs
* awesome-3.4.11-4 (x86_64)
0/2 signoffs
* mariadb-5.5.23-3 (x86_64)
1/2 signoffs
* virtualbox-modules-lts-4.1.14-1 (x86_64)
1/2 signoffs
== All packages in [community-testing] for more than 14 days (1 total) ==
* vicious-2.0.4-2 (any), since 2012-04-17
== Top five in signoffs in last 24 hours ==