You are not logged in.

#1 2008-11-18 13:12:28

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Why becomes the *.desktop installed but the *.xpm not in my PKGBUILD?

Hi,
I'm a bit confused. I created a desktop and xpm file for vidalia. Here's the PKGBUILD:

pkgname=vidalia
pkgver=0.1.10
pkgrel=3
pkgdesc="Controller GUI for Tor"
url="http://vidalia-project.net"
arch=('i686' 'x86_64')
license="GPL"
depends=('qt>=4.2.0' 'tor')
makedepends=('cmake>=2.4.0')
source=(http://vidalia-project.net/dist/$pkgname-$pkgver.tar.gz \
    vidalia.xpm \
    vidalia.desktop)
md5sums=('9533fe2c29fe50d363c6e5b369ec8938'
     'be9fc03972f10a06ad54ef40d6ea2246'
     'd44470eb06ae46866b3fc44ebe6c7538')

build() {
[ -f /etc/profile.d/qt4.sh ] && source /etc/profile.d/qt4.sh

cd $srcdir/$pkgname-$pkgver
cmake -D CMAKE_INSTALL_PREFIX=/usr .
make || return 1
make DESTDIR=$pkgdir install
cd ..
install -Dm644 vidalia.xpm $srcdir/usr/share/pixmaps/vidalia.xpm
install -Dm644 vidalia.desktop $srcdir/usr/share/applications/vidalia.desktop 
}

The makepkg:

/var/abs/local/vidalia$ makepkg
==> Making package: vidalia 0.1.10-3 i686 (Tue Nov 18 14:02:32 CET 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found vidalia-0.1.10.tar.gz in build dir
  -> Found vidalia.xpm in build dir
  -> Found vidalia.desktop in build dir
==> Validating source files with md5sums...
    vidalia-0.1.10.tar.gz ... Passed
    vidalia.xpm ... Passed
    vidalia.desktop ... Passed
==> Extracting Sources...
  -> bsdtar -x -f vidalia-0.1.10.tar.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
-- Configuring Vidalia 0.1.10
-- Looking for OpenSSL libraries
-- Looking for OpenSSL libraries - found
-- Configuring done
-- Generating done
-- Build files have been written to: /var/abs/local/vidalia/src/vidalia-0.1.10
[  0%] Built target ts2po
[  3%] Built target miniupnpc
[  3%] [  8%] Built target po2ts
Built target common
[ 25%] Built target i18n
[ 37%] Built target torcontrol
[100%] Built target vidalia
[  0%] Built target ts2po
[  3%] Built target miniupnpc
[  8%] Built target common
[  8%] Built target po2ts
[ 25%] Built target i18n
[ 37%] Built target torcontrol
[100%] Built target vidalia
Install the project...
-- Install configuration: ""
-- Installing: /var/abs/local/vidalia/pkg/usr/bin/vidalia
-- Removed runtime path from "/var/abs/local/vidalia/pkg/usr/bin/vidalia"
-- Installing: /var/abs/local/vidalia/pkg/usr/share/applications/vidalia.desktop
==> Tidying install...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: vidalia 0.1.10-3 i686 (Tue Nov 18 14:02:45 CET 2008)

The installation:

/var/abs/local/vidalia$ sudo pacman -U vidalia-0.1.10-3-i686.pkg.tar.gz 
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [######################################################] 100%
(1/1) installing vidalia                            [######################################################] 100%
/var/abs/local/vidalia$

The problem:

$ ls -al /usr/share/applications |grep  vidalia
-rw-r--r--   1 root root  116  3. Nov 02:43 vidalia.desktop
$ ls -al /usr/share/pixmaps |grep vidalia     
$

Why is the desktop file installed but the xpm not? Both files ly in the same directory /var/abs/local/vidalia and have the same permission. You can also see in the pacman -U output that the desktop is installed but not the xpm file!

Offline

#2 2008-11-18 13:17:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: Why becomes the *.desktop installed but the *.xpm not in my PKGBUILD?

Well, it seems a desktop file is being installed by the "make install" part so you do not need to do it manually.

For the icon

install -Dm644 vidalia.xpm $srcdir/usr/share/pixmaps/vidalia.xpm

you want to install to $pkgdir, not $srcdir.

I would also remove the "cd .." prior to the install and just do the following

install -Dm644 $srcdir/vidalia.xpm $pkgdir/usr/share/pixmaps/vidalia.xpm

Offline

#3 2008-11-18 13:20:48

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: Why becomes the *.desktop installed but the *.xpm not in my PKGBUILD?

Thank you very much for the help! Now it works like a charm smile

Offline

Board footer

Powered by FluxBB