You are not logged in.

#1 2008-10-02 04:35:56

doorknob60
Member
From: Oregon
Registered: 2008-09-29
Posts: 399

[solved, test it please] Small problem with my first PKGBUILD

Solved, I'd appreciate testers. AUR Link: http://aur.archlinux.org/packages.php?ID=20454

I'm still a newb at this (and Arch in general, switched a few days ago), os it's probably a stupid mistake, but I'm so close (it took forever to find a host I can hotlink to , I'm not giving up now-.-)

My PKGBUILD file:

# Maintainer: doorknob60 <doorknob60@gmail.com>

pkgname=fretsonfire-alarian-mod
pkgver=3.005.1
pkgrel=1
pkgdesc="A highly modded version of Frets on Fire, giving it many themes, features, etc. to make it more fun and more similar to Rock Band and Guitar Hero."
arch=(i686 x86_64)
conflicts=('bin32-fretsonfire' 'fretsonfire')
url="http://mfh-alarian-mod.com/"
install=${pkgname}.install
license=('see /opt/FoF_Alarian_3.005.1_i386/doc/copyright.txt')
groups=('games')
makedepends=('p7zip')
if [ `uname -m` = "x86_64" ]; then
depends=('lib32-sdl' 'lib32-sdl_mixer')
else
depends=('sdl' 'sdl_mixer')
fi
source=(http://www.fileden.com/files/2006/8/15/169791/FoF_Alarian_3.005.1_i386.7z)
noextract=('FoF_Alarian_3.005.1_i386.7z')
md5sums=('c60cda350a855be57ce099c7e8ab2355')

build() {
7z x FoF_Alarian_3.005.1_i386.7z
mv MFH_Full_3.005.1_32bit/ /opt/FoF_Alarian_3.005.1_i386
sudo ln -s /opt/FoF_Alarian_3.005.1_i386/FretsOnFire /usr/bin/
rm FoF_Alarian_3.005.1_i386.7z
}

My fretsonfire-alarian-mod.install file:

# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).

## arg 1:  the new package version
#pre_install() {
  # do something here
#}

arg 1:  3.005.1
post_install() {
echo "Run 'FretsOnFire' to start the game. To add songs to the game, either add them to '/opt/FoF_Alarian_Mod/data/songs/' or '~/.fretsonfire/songs/'"
echo "If it ever doesn't work, try removing ~/.fretsonfire/fretsonfire.ini"
echo "If you have a multicore processor, try running with this command for better performance: taskset -c 0 FretsOnFire"
}

## arg 1:  the new package version
## arg 2:  the old package version
#pre_upgrade() {
  # do something here
#}

## arg 1:  the new package version
## arg 2:  the old package version
#post_upgrade() {
  # do something here
#}

## arg 1:  the old package version
#pre_remove() {
  # do something here
#}

## arg 1:  the old package version
#post_remove() {
  # do something here
#}

# vim:set ts=2 sw=2 et:

Terminal output of makepkg:

austin@austin alarian-aur]$ makepkg                          
==> Making package: fretsonfire-alarian-mod 3.005.1-1 x86_64 (Wed Oct  1 21:15:22 PDT 2008)                                                                     
==> Checking Runtime Dependencies...                                            
==> Checking Buildtime Dependencies...                                          
==> Retrieving Sources...                                                       
  -> Downloading FoF_Alarian_3.005.1_i386.7z...                                 
--2008-10-01 21:15:22--  http://www.fileden.com/files/2006/8/15/169791/FoF_Alarian_3.005.1_i386.7z                                                              
Resolving www.fileden.com... 207.210.115.85, 207.210.115.86, 207.210.115.87, ...
Connecting to www.fileden.com|207.210.115.85|:80... connected.                  
HTTP request sent, awaiting response... 200 OK                                  
Length: 51658916 (49M) [application/octet-stream]                               
Saving to: `FoF_Alarian_3.005.1_i386.7z.part'                                   

100%[======================================>] 51,658,916  99.6K/s   in 9m 41s  

2008-10-01 21:25:05 (86.8 KB/s) - `FoF_Alarian_3.005.1_i386.7z.part' saved [51658916/51658916]                                                                  

==> Validating source files with md5sums...
    FoF_Alarian_3.005.1_i386.7z ... Passed 
==> Extracting Sources...                  
==> Entering fakeroot environment...       
==> Starting build()...                    

7-Zip  4.58 beta  Copyright (c) 1999-2008 Igor Pavlov  2008-05-05
p7zip Version 4.58 (locale=en_US.utf8,Utf16=on,HugeFiles=on,2 CPUs)

Processing archive: FoF_Alarian_3.005.1_i386.7z

Extracting  MFH_Full_3.005.1_32bit/FretsOnFire
Extracting  MFH_Full_3.005.1_32bit/data/sounds/100pct1.ogg

[more extracting...]

Extracting  MFH_Full_3.005.1_32bit/data                                         
Extracting  MFH_Full_3.005.1_32bit                                              

Everything is Ok

Folders: 18
Files: 346 
Size:       76890450
Compressed: 52
mv: cannot move `MFH_Full_3.005.1_32bit/' to `/opt/FoF_Alarian_3.005.1_i386': Permission denied
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
Password:
==> Tidying install...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: fretsonfire-alarian-mod 3.005.1-1 x86_64 (Wed Oct  1 21:25:30 PDT 2008)

Notice the fakeroot error, which is probably related to the Permission denied error. I end up with a .pkg.tar.gz with only .PKGINFO and .INSTALL in it...any ideas to fix the fakeroot thing?

Last edited by doorknob60 (2008-10-02 05:22:01)


If you have a 64 bit CPU, use a 64 bit OS! Click
Click here to see my AUR packages smile

Offline

#2 2008-10-02 04:54:57

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,616

Re: [solved, test it please] Small problem with my first PKGBUILD

mv MFH_Full_3.005.1_32bit/ /opt/FoF_Alarian_3.005.1_i386
sudo ln -s /opt/FoF_Alarian_3.005.1_i386/FretsOnFire /usr/bin/

you need to put ${srcdir} and ${pkgdir} in front of the paths.

it should look like:
mv ${srcdir}/MFH_Full_3.005.1_32bit ${pkgdir}/opt/FoF_Alarian_3.005.1_i386

Offline

#3 2008-10-02 05:00:38

doorknob60
Member
From: Oregon
Registered: 2008-09-29
Posts: 399

Re: [solved, test it please] Small problem with my first PKGBUILD

Yeah, I reread the Wiki and found that too, sorry for not updating my post, but thanks anyways for the answer. I'm gonna upload it to AUR now smile

http://aur.archlinux.org/packages.php?ID=20454

I want someone with Arch64 to test it as well as someone with i686. It works fine on my arch64, but I already had the dependencies ect. I don't have an Arch32 to test it on, so I need someone to test that too.

Last edited by doorknob60 (2008-10-02 05:09:24)


If you have a 64 bit CPU, use a 64 bit OS! Click
Click here to see my AUR packages smile

Offline

Board footer

Powered by FluxBB