You are not logged in.
Trying to make a AUR package for MPEG4IP so it depends on 'faac' at build time, though 'faac' in arch repo is built with --with=mp4v2=yes so the PKGBUILD needs to build a custom faac first and i use:
cd $srcdir/faac-1.28
./bootstrap --with=mp4v2=no
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install || return 1
But after that i don't know how to continue on, never had todo it b4 ^^...
If i put this after the above:
cd $srcdir/mpeg4ip-1.5.0.1
./bootstrap --prefix=$pkgdir/usr/bin --enable-ffmpeg
make || return 1
make DESTDIR="$pkgdir" install || return 1
It won't compile because the custom faac isn't installed yet.
ofc if i use 'make install || return 1' at faac code i get permission errors when doin makepkg -s.
and if i su -c "make install || return 1" it'll ask for su password during build, feels alil wrong, think i'm on the wrong track here.
Last edited by Corex (2010-02-23 11:29:40)
Offline
You need to make a separate custom faac package - call it something like faac-nomp4v2 - which conflicts with and provides faac. Install that, then build your mpeg4ip package.
I'm sure you're already aware that mpeg4ip is no longer maintained, but I'll mention it anyway just in case.
Offline
Yeah, just wanted to make a long story short, it's Air Video Server wich requires a custom ffmpeg and mpeg4ip wich in turn requires a custom faac.
So it's not possible to build 1 aur package with other build dependencies that's not in the arch repostory?
Because right now i'm adding:
msg "Enter your root password if it asks for a password"
su -c "make install || return 1"
But that still feels a bit wrong, it installs packages before the actual package is installed with pacman (installs in makepkg stage) and i don't know if that's ok or not... When removing files still will be there but that can be solved through the .install script.
Last edited by Corex (2010-02-23 13:03:12)
Offline
Because right now i'm adding:
msg "Enter your root password if it asks for a password"
su -c "make install || return 1"But that still feels abit wrong
Not a bit wrong.... a lot wrong.
Offline
So what's the correct solution?
Offline
We don't bundle packages. Just do it the way I suggested
Offline
Sorry i'm very unsure of this i just wan't to learn correctly from the beginning, i'm trying to see it as it we're finished, first have to download and install faac from AUR then ffmpeg and then mpeg4ip lastly AirVideoServer? I don't quite understand what you mean tomk
Offline
Awww wait i'm sorry lol, aur packages can be made dependencies in PKGBUILD? i get it now rofl sry bout that.. I only knew dependencies worked from the main arch repo.
______________
<- i'm with stupid
Last edited by Corex (2010-02-23 13:16:23)
Offline
So the packages are now created correctly seperatly and put up on AUR, now i'm trying to install mpeg4ip 1.5.0.1 and i've put makedepends containing the new package faac-nomp4v2 but i'm getting the error:
faac-nomp4v2 package not found, searching for group...
error: 'faac-nomp4v2': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.
command used was 'makepkg -s'
So is it not possible to have a unsupported aur pakage as a dependency for another aur package?
Last edited by Corex (2010-02-23 15:04:15)
Offline
So the packages are now created correctly seperatly and put up on AUR, now i'm trying to install mpeg4ip 1.5.0.1 and i've put makedepends containing the new package faac-nomp4v2 but i'm getting the error:
faac-nomp4v2 package not found, searching for group...
error: 'faac-nomp4v2': not found in sync db
==> ERROR: Pacman failed to install missing dependencies.command used was 'makepkg -s'
So is it not possible to have a unsupported aur pakage as a dependency for another aur package?
You can, you just need to install the manually...
if you upload to the AUR you won't be able to retrieve it via pacman.. perhaps via some other package management.
Offline
Humm so there no way to implement an easy install via AUR cuz the app has custom build dep? Cuz it's hard to get the information needed for a user to complete the install in the correct order
Offline
the AUR is by design a manual process. if an AUR packages has an AUR dep, pacman will never find/install it. however, there are many aur helpers (packer, bauerbill, aurget) that will do auto-dependency resolution for you. please look into these.
//github/
Offline
I will, just wanted to know if it was possible through PKGBUILD first.. I'll look into it, thx everyone for sharing the information, trying to learn
Offline