Featured post
c++ - Packaging Linux software while keeping a sane file structure -
so have created piece of software wanna package , post arch linux user repositories, aur, -should note, have never packaged distro before - , have got packaged , installed on own machine via arch's package manager pacman successfully, wondering how on earth gonna structure folders , files?
normally when wrote software, use structure:
build/ | src/ | makefile
as minimum, , in case of piece of software, makefile nothing more compile .cpp file src/ build/. make arch package, had create .rc file, use program daemon , pkgbuild file, file tells makepkg program how build installer-package - these 2 files, though, specific arch. if wanna package program debian, need set of files too, these files work debian. now, can't put .rc file , pkgbuild file in programs root folder, since "be mess" if had files build package debian, put distro-specific files? need have in programs root folder -at-least- able keep track of it, , initial thought go structure distro/arch/ arch linux specific files, , pkgbuild file run makefile in programs root folder , copy compiled file build/ distro/arch/ before did else, discovered couldnt pkgbuild work way, , people on #archlinux on freenode said not smart idea.
so put distro specific files? if knew had provide program arch, easy structure makepkg, dont imprison softwarelike that, , imagine providing packages other mayor distros debian, how achieve while keeping sane file structure?
regards, chris buchholz
very find in tarballs directory called 'debian' has debian specific files in it. go same route , create directory 'archlinux' , put files there.
then go on , put file readme in archlinux directory explains how use pkgbuild properly.
one solution write rule makefile 'package-arch' copies pkgbuild root directory, runs makepkg, deletes redundant pkgbuild.
it's hackish, write bug report arch people fix limitation. however, did try makepkg -p archlinux/pkgbuild
?
- Get link
- X
- Other Apps
Comments
Post a Comment