You are not logged in.

#1 2009-02-21 14:47:29

adamlau
Member
Registered: 2009-01-30
Posts: 418

PKGBUILD To Move Firefox To /usr/share/applications?

Built 3.1b2 manually, now I have a portable 'firefox' folder I want pacman to manage. Been trying different combos (mkdir -p, install -d -D), but cannot seem to create a proper tar.gz installer. Assuming I place the 'firefox' folder in $srcdir, what is the syntax to move the folder to  /usr/share/applications, set 755 on the firefox sh script and then create a symlink from the script to /usr/bin/firefox? Is there an example of what I am trying to do in the repos, AUR (I have looked, but I may be blind)...


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2009-02-21 16:01:25

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: PKGBUILD To Move Firefox To /usr/share/applications?

first off, you don't want the actual installation folder in /usr/share/applications... the applications directory is used for holding .desktop files. the program folder itself should probably be in /usr/share/ also, the folder should be installed to $pkgdir to be included in the pkg archive ($srcdir is just used for building). Please post what you have and i'll see if i can help you fix it up a bit and make it functional.


.:[My Blog] || [My GitHub]:.

Offline

#3 2009-02-22 05:57:40

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: PKGBUILD To Move Firefox To /usr/share/applications?

build () {
cd ${srcdir}

  mkdir -m755 -p ${pkgdir}/usr/local/bin || return 1
  mkdir -m755 -p ${pkgdir}/usr/local/share/applications || return 1
  mv $pkgname ${pkgdir}/usr/local/share/applications/${pkgname} || return 1

  ln -s ${pkgdir}/usr/local/share/applications/${pkgname/${pkgname} ${pkgdir}/usr/local/bin/${pkgname} || return 1
}

No go, I get an extra CRLF applications folder...

Last edited by adamlau (2009-02-22 05:58:26)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#4 2009-02-22 06:27:16

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: PKGBUILD To Move Firefox To /usr/share/applications?

change

mkdir -m755 -p ${pkgdir}/usr/local/share/applications

to

mkdir -m755 -p ${pkgdir}/usr/local/share/

change

ln -s ${pkgdir}/usr/local/share/applications/${pkgname/${pkgname} ${pkgdir}/usr/local/bin/${pkgname}

to

ln -s ${pkgdir}/usr/local/share/${pkgname}/${pkgname} ${pkgdir}/usr/local/bin/${pkgname}

just at a glance, didn't test it or anything... but it'll put the program folder in the right place and fix your ln command... there's a little typo in it.


.:[My Blog] || [My GitHub]:.

Offline

#5 2009-02-22 07:54:45

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: PKGBUILD To Move Firefox To /usr/share/applications?

Should have triple checked everything, thanks, Ghost1227. Now to find out a way to symlink it properly and not back to ${pkgdir}...


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB