You are not logged in.

#1 2014-03-07 13:34:53

tdrusk
Member
Registered: 2014-03-07
Posts: 2

[SOLVED]LXAppearance-0.5.5 PKGBUILD - Need Help Creating

I thought I would teach myself how to do PKGBUILDs by using LXAppearance.

I used this as my sources: http://downloads.sourceforge.net/projec … tlayer-ams

I extracted it to /home/tyler/Development/lxappearance-0.5.5/

Then I copied and modified this PKGBUILD and put it in the correct directory.

#$Id: PKGBUILD 103634 2014-01-08 14:31:20Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>  
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>

pkgname=lxappearance
pkgver=0.5.5
pkgrel=1
pkgdesc='Feature-rich GTK+ theme switcher of the LXDE Desktop'
arch=('i686' 'x86_64')
license=('GPL2')
url='http://lxde.org/'
groups=('lxde')
depends=('gtk2' 'dbus-glib')
makedepends=('intltool')
#source=(http://downloads.sourceforge.net/sourceforge/lxde/$pkgname-$pkgver.tar.xz)
#md5sums=('a67113681d9d0a6d936289909aed5782')

build() {
  cd /home/tyler/Development/lxappearance-0.5.5/ 
  ./configure --sysconfdir=/etc --prefix=/usr \
    --enable-dbus
  make 
}

package() {
  cd /home/tyler/Development/lxappearance-0.5.5/ 
  make DESTDIR="$pkgdir/" install 
}

Finally, I ran makepkg -s and pacman -U lxappearance-0.5.5-1-x86_64.pkg.tar.xz

When pacman installs the lxappearance package it says the total install size is 0.09 MiB. When I install it from the repos I get a .39 MiB package. Also, when I go to run lxappearance nothing happens. I can see it in /usr/bin, but it simply doesn't run.

Any tips to get this to work?

Last edited by tdrusk (2014-03-08 14:33:09)

Offline

#2 2014-03-07 14:04:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,401

Re: [SOLVED]LXAppearance-0.5.5 PKGBUILD - Need Help Creating

tdrusk wrote:

I extracted it to /home/tyler/Development/lxappearance-0.5.5/

Hard to tell what happens if you do it this way, but having PKGBUILD and extracted sourcefile in same directory seems messy at best.

You should replicate the structure used by makepkg.

- create a folder lxappearance under ~/Development
- put the PKGBUILD in that folder

- create a subfolder called src
- in src create a subfolder called lxappearance-0.5.5

extract the downloaded file to ~/Development/lxappearance/src/lxappearance-0.5.5

Adjust build()  and package() functions to use that folder.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2014-03-08 14:32:57

tdrusk
Member
Registered: 2014-03-07
Posts: 2

Re: [SOLVED]LXAppearance-0.5.5 PKGBUILD - Need Help Creating

Thank you! I was making it too complicated!

Arch provides 1.5.5, so I just copied the PKGBUILD to /home/tyler/Development/lxappearance.
Then I edited the PKGBUILD like so:

#$Id: PKGBUILD 103634 2014-01-08 14:31:20Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>

pkgname=lxappearance
pkgver=0.5.5
pkgrel=1
pkgdesc='Feature-rich GTK+ theme switcher of the LXDE Desktop'
arch=('i686' 'x86_64')
license=('GPL2')
url='http://lxde.org/'
groups=('lxde')
depends=('gtk2' 'dbus-glib')
makedepends=('intltool')
source=(http://downloads.sourceforge.net/sourceforge/lxde/$pkgname-$pkgver.tar.xz)
md5sums=('a67113681d9d0a6d936289909aed5782')

build() {
  cd /home/tyler/Development/lxappearance/src/lxappearance-0.5.5/
  ./configure --sysconfdir=/etc --prefix=/usr \
    --enable-dbus
  make
}

package() {
  cd /home/tyler/Development/lxappearance/src/lxappearance-0.5.5/
  make DESTDIR="$pkgdir" install
}

After that, I was able to run makepkg -s and pacman -U lxappearance-0.5.5-1-x86_64.pkg.tar.xz to get it installed and running. Thanks for your help!

Offline

Board footer

Powered by FluxBB