You are not logged in.

#1 2009-05-27 05:40:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

PKGBUILD - does this look right

My PKGBUILD simply needs to copy files from a zip file to /usr/share/java/Jalbum/skins/BananAlbum.  Here is what I have so far and it seems to work just fine.  Is there a more elegant way to do it?

pkgname=bananalbum
pkgver=6.1.4
pkgrel=1
pkgdesc="Very elegant and sexy flash based JAlbum skin."
arch=('i686' 'x86_64')
url="http://www.bananalbum.com"
license=("freeware")
depends=('jalbum')
source=("BananAlbum_v6.1.4.zip::http://jalbum.net/web/GetSkinFile?versionId=1253&type=zip")
#source=(http://jalbum.net/web/GetSkinFile?versionId=1253&type=zip)
md5sums=('dd4d860769db0da6f16aa5b13fd41772')

build() {
 install -dm755 $pkgdir/usr/share/java/Jalbum/skins/BananAlbum
 cp -r $srcdir/BananAlbum_v$pkgver/* $pkgdir/usr/share/java/Jalbum/skins/BananAlbum
}

Last edited by graysky (2009-05-27 05:58:37)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-05-27 05:57:07

DevoidOfWindows
Member
Registered: 2009-05-24
Posts: 133

Re: PKGBUILD - does this look right

Change the cp line to install -m644 $srcdir/BananAlbum_v$pkgver/* $pkgdir/usr/share/java/Jalbum/skins/BananAlbum || return 1, maybe?

Last edited by DevoidOfWindows (2009-05-27 06:05:45)

Offline

#3 2009-05-27 05:59:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: PKGBUILD - does this look right

@Devoid - I edited my original post having discovered the error of my way smile


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2009-05-27 06:06:54

DevoidOfWindows
Member
Registered: 2009-05-24
Posts: 133

Re: PKGBUILD - does this look right

And I have edited my post after discovering mine.  tongue

Offline

#5 2009-05-27 06:11:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: PKGBUILD - does this look right

@Devoid - Actually, I was wrong about the 644... if I look at the other skin directories they are all 755 so what I have works just fine.  Is there a strong reason not to use the cp command?

Last edited by graysky (2009-05-27 06:12:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB