You are not logged in.

#1 2008-09-22 19:28:49

aneiser
Member
Registered: 2008-07-21
Posts: 58

PKGBUILD for jessies.org-terminator

Hey all,
this is my first try in getting a PKGBUILD to work and it seems that this is unfortunately a bit more complicated. A lot of information is given here http://software.jessies.org/terminator/, on the homepage of "Terminator" which is an terminal emulator but the one which is also called "terminator" and can be found in the archlinux repos already.
So, this is my PKGBUILD for it so far:

# Contributor:  Andreas Neiser <andreas.neiser@gmail.com>

pkgname=jessies-terminator-svn
pkgver=1461
pkgrel=1
pkgdesc="Terminator is a cross-platform GPL terminal emulator with advanced features not yet found elsewhere. This will checkout and package the latest SVN version."
arch=('i686' 'x86_64')
url="http://software.jessies.org/terminator/"
license=('GPL')
depends=('jdk' 'jre' 'ruby')
makedepends=('subversion')
conflicts=(terminator)

source=()
md5sums=()


build() {
  cd ${srcdir}
  
  svn checkout http://software.jessies.org/svn/terminator/trunk/ terminator
  svn checkout http://software.jessies.org/svn/salma-hayek/trunk/ salma-hayek

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  
  make -C salma-hayek || return 1
  make -C terminator || return 1 
  make DESTDIR=${pkgdir} -C terminator install

  rm -rf ${srcdir}/salma-hayek
  rm -rf ${srcdir}/terminator
}

The main problem is that "make install" tries to build an .deb debian package, now the question to more experienced maintainers is:
How to handle this? I see two options:
1) Making dpkg a dependency, let "make install" make the deb package, then extract the files somehow from that, construct a pacman pkg from it.
2) Find out which files are needed for install and do it manually in the PKGBUILD.
Both ideas seem not to be ideal, does somebody has a hint except writing the author he should write "common" Makefile's every distro can use.....?!
Any other comments on this (e.g. the package naming convention if there are two different packages with the same name...)
Thanks for your help!
Andreas

Offline

Board footer

Powered by FluxBB