jvb wrote:
> On Sun, May 07, 2006 at 10:26:03PM -0400, Travis Willard wrote:
>   
>> jvb wrote:
>>     
>>> Here's the PKGBUILD file so far:
>>>
>>> --------------------------------------------------------------
>>> pkgname=urlview
>>> pkgver=0.9
>>> pkgrel=16
>>> depends=('bash')
>>> pkgdesc="A curses URL parser for text files"
>>> source=(http://ftp.linux.pt/pub/mirrors/debian/pool/main/u/urlview/$pkgname\_$pkgver.orig.tar.gz\
>>>         $pkgname\_$pkgrel\-$pkgrel.diff.gz)
>>> url="http://ftp.linux.pt/pub/mirrors/debian/pool/main/u/urlview/";
>>>
>>> build() {
>>>     cd $startdir/$pkgname-$pkgver.orig
>>>     patch -Np1 -i ../urlview\_$pkgver\-$pkgrel.diff
>>>     ./configure --prefix=/usr
>>>     mkdir -p $startdir/pkg/etc/urlview $startdir/pkg/usr/man/man1
>>>     make || return 1
>>>     make prefix=$startdir/pkg/usr install
>>>     install -D -m755 url_handler.sh\
>>>       $startdir/pkg/etc/urlview/url_handler.sh
>>>     install -D -m644 sample.urlview\
>>>       $startdir/pkg/etc/urlview/system.urlview
>>>     ln -fs /etc/urlview/url_handler.sh\
>>>       $startdir/pkg/usr/bin/url_handler.sh
>>> }
>>>       
>
> Now, I have another question. What is that last line going to do? The
> "ln -fs ..." line. It looks to me like it's going to link
> "/etc/urlview/url_handler.sh" to "$startdir/pkg/usr/bin/url_handler.sh"
> which is in my build directory. Why would you want to do that?
>   
Actually, you've got that backwards.  Check out 'man ln' - you'll see 
that the first parameter is the target for the link, and the second is 
the link name itself (much in the way cp file1 file2 takes file1, and 
copies it into file2) - in this case it makes a link at 
$startdir/pkg/usr/bin/url_handler.sh (which will be installed to 
/usr/bin/url_handler.sh once you install the package) that points to 
/etc/urlview/url_handler.sh.

-- Cerebral

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to