You are not logged in.
I'm trying to write a PKGBUILD that will simply copy some jpg files to the /usr/share/pixmaps/backgrounds/cosmos dir. Here is my first stab at it but what I'm not understanding is the correct way to make the $pkgdir/usr/share/pixmaps/backgrounds/cosmos directory.
Do I literally need a 'mkdir' line for each of the directories i.e. one for /usr, then one for /usr/share, then one of /usr/share/pixmaps, etc. of is there an easier way?
pkgname=cosmos-extras
pkgver=1.0
pkgrel=1
pkgdesc="The archive contains 13 astronomical images. The focus is primarily images within this solar sy$
arch=('i686' 'x86_64')
url="http://www.gnome-look.org/content/show.php/Cosmos+Screensaver%3A+extra+images?content=103282"
license=("custom")
depends=('gnome-screensaver')
source=(http://www.gnome-look.org/CONTENT/content-files/103282-${pkgname}.tar.gz)
md5sums=('7a166821777ac8d9857a37ab41244918')
build() {
cd $srcdir/$pkgname
mkdir $pkgdir/usr/
install -D -m644 README.txt $pkgdir/usr/share/pixmaps/backgrounds/cosmos/
install -D -m644 *.jpg $pkgdir/usr/share/pixmaps/backgrounds/cosmos/
}
Last edited by graysky (2009-05-10 13:46:06)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
There is an easier way:
mkdir -p /usr/share/pixmaps/backgrounds/cosmos
This creates parent directories as necessary.
Offline
Or even better
install -dm755 /usr/share/pixmaps/backgrounds/cosmos
Offline
Cool, this is what I have now. Do you guys see anything wrong w/ it before I u/l it to the AUR?
# Maintainer: Graysky <da_audiophile at yahoo dot com>
pkgname=cosmos-extras
pkgver=1.0
pkgrel=1
pkgdesc="The archive contains 13 astronomical images. The focus is primarily images within this solar system."
arch=('i686' 'x86_64')
url="http://www.gnome-look.org/content/show.php/Cosmos+Screensaver%3A+extra+images?content=103282"
license=("custom")
depends=('gnome-screensaver')
source=(http://www.gnome-look.org/CONTENT/content-files/103282-${pkgname}.tar.gz)
md5sums=('7a166821777ac8d9857a37ab41244918')
build() {
cd $srcdir/$pkgname
install -dm644 $pkgdir/usr/share/pixmaps/backgrounds/cosmos
install -m644 README.txt $pkgdir/usr/share/pixmaps/backgrounds/cosmos
install -m644 *.jpg $pkgdir/usr/share/pixmaps/backgrounds/cosmos/
}
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
A bit shorter:
build() {
cd $srcdir/$pkgname
install -Dm644 README.txt $pkgdir/usr/share/pixmaps/backgrounds/cosmos/README.txt
install -m644 *.jpg $pkgdir/usr/share/pixmaps/backgrounds/cosmos/
}
But if the license really does not fit into one of the common licenses (do a "ls -l /usr/share/licenses/common" to get a list), you must add a license file.
Offline
@Stefan - thanks for the modification. The contents of the package are literally public domain jpg files. It's not clear to me which of the licenses would cover them..?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@Stefan - thanks for the modification. The contents of the package are literally public domain jpg files. It's not clear to me which of the licenses would cover them..?
Offline