You are not logged in.
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
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.
Offline
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
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.
Offline
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