You are not logged in.
Hello
I'm trying to create an arch package of my software. I have just three files needed to be copied in /usr/bin and /etc/. can't find how should I tell makepkg where are them.... There is only source variable in PKGBUILD and i don't want to add any source. just binaries are here.
AND before you ask I should say I already read the wiki things :-/
Last edited by soroush (2011-10-30 17:52:37)
Offline
'Source' means what files are going to be used: binaries, scripts, patches, local or from some internet location - doesn't matter. Put those files in the same folder as the PKGBUILD and put their names in the 'source' array.
Have a look at some PKGBUILD if you are still lost.
Offline
Ok I looked at some PKGBUILD in AUR. There are all usually sourceforge links to source tarballs in source array. So makepkg downloads and compiles them... I can't manage to do that for local files. Could you give an example please? I want to copy the file 'a' to /usr/bin/a and the file 'b' to /etc/a/b ? What should I do now?
Offline
https://aur.archlinux.org/packages/do/d … e/PKGBUILD
Not sure about e.g. the 'return 1' part, I think it's deprecated, but this is how you just copy the files w/o compiling.
Offline
https://aur.archlinux.org/packages/do/d … e/PKGBUILD
Not sure about e.g. the 'return 1' part, I think it's deprecated, but this is how you just copy the files w/o compiling.
install -D -755 $pkgdir/usr/bin/a /usr/bin/aNot working. I think there should be a better way like debian!
Offline
karol wrote:https://aur.archlinux.org/packages/do/d … e/PKGBUILD
Not sure about e.g. the 'return 1' part, I think it's deprecated, but this is how you just copy the files w/o compiling.install -D -755 $pkgdir/usr/bin/a /usr/bin/aNot working. I think there should be a better way like debian!
' /usr/bin/a'? You're not installing them now, you just create a package. Pacman will install them if you run ',makepkg -i'.
Offline
soroush wrote:karol wrote:https://aur.archlinux.org/packages/do/d … e/PKGBUILD
Not sure about e.g. the 'return 1' part, I think it's deprecated, but this is how you just copy the files w/o compiling.install -D -755 $pkgdir/usr/bin/a /usr/bin/aNot working. I think there should be a better way like debian!
' /usr/bin/a'? You're not installing them now, you just create a package. Pacman will install them if you run ',makepkg -i'.
Sorry I don't understand! How should I add files to my package??!!! I think it's a clearly declared and rational desire. how should I do that? How packagers add files to their packages? I'm really confused and don't know how to ask this simple question :-/
Offline
it should be something like
install -D -m 755 "${srcdir}/awesome_binary" "${pkgdir}/usr/bin/awesome_binary"
Offline
it should be something like
install -D -m 755 "${srcdir}/awesome_binary" "${pkgdir}/usr/bin/awesome_binary"
Finally! now I can understand what are ${pkgdir} and ${srcdir}
Thank you :-)
Offline
$pkgdir/usr/bin/$pkgname will get installed into the proper location - /usr/bin/$pkgname - when you install the package via 'pacman -U $pkgname'. That's the point of having pacman :-)
Please remember to mark the thread as solved.
Offline