You are not logged in.

#1 2007-07-22 18:21:45

miggols99
Member
Registered: 2007-06-10
Posts: 424

Splashy/Usplash?

Is it possible to get Splashy or Usplash working in Arch Linux? I've looked at gensplash and bootsplash, but they require patching the kernel, which I rather wouldn't do. So can I?

Last edited by miggols99 (2007-07-22 19:42:52)

Offline

#2 2007-07-23 15:54:40

random.bits
Member
From: Ottawa Canada
Registered: 2004-07-18
Posts: 39

Re: Splashy/Usplash?

Yes you can. See the wiki

http://wiki.archlinux.org/index.php/Splashy

Below is my modified PKGBUILD file.
The wiki points you to the AUR to get
all the files.

I modified the PKGBUILD file to

correct a warning/error that a variable was undefined (found notes
for this associated with the AUR package)
forceably turn off DEBUG (--disable-debug on the configure line
did not work)

These errors may be fixed in a more recent version. I do not
believe a package is available for splashy directly.

Mark


# Contributor: Darwin Bautista <djclue917@gmail.com>

pkgname=splashy
pkgver=0.3.2
pkgrel=7
pkgdesc="A next-generation user-space boot splashing system for Linux systems"
arch=('i686' 'x86_64')
url="http://splashy.alioth.debian.org/"
license=('GPL')
depends=('file' 'glib2')
makedepends=('directfb' 'perl' 'pkgconfig' 'procps')
backup=('etc/splashy/config.xml' 'etc/default/splashy')
install=splashy.install
source=(https://alioth.debian.org/frs/download.php/1832/splashy_${pkgver}.tar.gz \
        http://darwin.info.tm/source/arch-1.2.tar.gz \
        splashy.rc \
        splashy.functions \
        splashy.initcpio_install \
        splashy.initcpio_hook \
        splashy.conf)
md5sums=('9581a5ff78b57c54269d3cda0cdd8b39'
         'ccc2b903198185b22ff8bfada370bcb1'
         'c3b7196776e5d201116be01c61dd6958'
         '3ffe521031f49504b2911d55802d5348'
         '9845d2b611acf2afc0e283dc84ccb7d2'
         'd5f0298e3529e153d9647b621d82e836'
         '094be13241be6049f289a93e628d8650')
options=(!libtool)

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}/

  # Quick hack so that the linker won't complain about undefined references
  sed -e 's|splashy_LDADD = libsplashycnf.la libsplashy.la -lpthread -lm  -lglib-2.0|splashy_LDADD = libsplashycnf.la libsplashy.la -lm -lglib-2.0 -lsysfs -lfusion -ldirect -lz -lpthread|' -i src/Makefile.in

  # correct uninitialized variable error
  sed -e 's/*sp,/*sp=NULL,/g' -i src/splashy_video.c

  ./configure --prefix=/usr --sbindir=/sbin --sysconfdir=/etc --enable-static --enable-debug=no
  # really turn off debug
  sed -e 's/#define DEBUG 1/#undef DEBUG/g' -i config.h

  make || return 1
  make DESTDIR=${startdir}/pkg install

  # Remove unnecessary files
  rm -rf ${startdir}/pkg/etc/{console-tools,default,init.d,lsb-base-logging.sh}
  rm -rf ${startdir}/pkg/usr/share/initramfs-tools
  rm -f ${startdir}/pkg/usr/lib/{libsplashy.*,libsplashycnf.a}

  install -D -m755 ../splashy.rc ${startdir}/pkg/etc/rc.d/splashy
  install -D -m644 ../splashy.conf ${startdir}/pkg/etc/default/splashy
  install -D -m644 ../splashy.functions ${startdir}/pkg/etc/splashy/functions
  install -D -m644 ../splashy.initcpio_install ${startdir}/pkg/lib/initcpio/install/splashy
  install -D -m644 ../splashy.initcpio_hook ${startdir}/pkg/lib/initcpio/hooks/splashy

  # Install Arch Splashy theme
  mkdir -p ${startdir}/pkg/etc/splashy/themes/arch
  install -m644 ../arch/* ${startdir}/pkg/etc/splashy/themes/arch/
  sed -e 's|>default<|>arch<|' -i ${startdir}/pkg/etc/splashy/config.xml
}

Offline

#3 2007-07-23 17:48:01

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: Splashy/Usplash?

Ok smile I've searched around for Usplash and found this:

http://bbs.archlinux.org/viewtopic.php?t=29006

But the links are broken!! Where can I find the packages?

Offline

Board footer

Powered by FluxBB