DeLi(cate) Forum
PKGBUILD files - Printable Version

+- DeLi(cate) Forum (http://delicate-linux.net/forum)
+-- Forum: DeLi(cate) Linux [english only] (/forumdisplay.php?fid=3)
+--- Forum: Development (/forumdisplay.php?fid=6)
+--- Thread: PKGBUILD files (/showthread.php?tid=74)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


RE: PKGBUILD files - nl2stk - 12-29-2011 10:07 AM

(12-28-2011 10:36 PM)Compact Wrote:  Well .... after having done some compilations I had some succes with recent versions of software. But too often I stumble upon the fact that many of the Delicate packages are too old for aktual soft. Uclibc 0.9.28 e.g. seems to be from 2005. The actual one is v0.9.32 from june 2011.
With too many compilations you don't come any further than (sometimes hard to get) 2008 versions. So I tend to think it's better to upgrade the actual Delicate repo packages first. Is that a good idea ?

Well I don't know what happend if uclibc is gonna replaced by a newer one. Maybe it's on purpose to be compatible with older machines?


RE: PKGBUILD files - tavvva - 12-29-2011 04:36 PM

(12-28-2011 10:36 PM)Compact Wrote:  Uclibc 0.9.28 e.g. seems to be from 2005. The actual one is v0.9.32 from june 2011.
With too many compilations you don't come any further than (sometimes hard to get) 2008 versions. So I tend to think it's better to upgrade the actual Delicate repo packages first. Is that a good idea ?

I've already tried to build the recent version, but since there were some major issues with the upgrade I postponed this activity. Version 0.9.28 might be old, but the most critical stuff works better than well in this version and the builds usually need just minor patching.

(12-28-2011 10:36 PM)Compact Wrote:  After compiling I delete the scr and pkg dirs and compile again with: makepkg > log. This log I verify for messages (warnings about missing packages e.g.). Is there no other way to make a log or to verify ?

What else do You need? It's sufficient Smile

(12-28-2011 10:36 PM)Compact Wrote:  And still hot: how do I uninstall a package that is installed with:
sudo pacman -A xxxx.pkg.tar.gz
for --remove doesn't seem to work for xxxx.pkg.tar.gz isn't in the database.

Just omit the .pkg.tar.gz suffix :]

pacman -R xxxx


RE: PKGBUILD files - nl2stk - 12-29-2011 05:11 PM

(12-29-2011 04:36 PM)tavvva Wrote:  
(12-28-2011 10:36 PM)Compact Wrote:  Uclibc 0.9.28 e.g. seems to be from 2005. The actual one is v0.9.32 from june 2011.
With too many compilations you don't come any further than (sometimes hard to get) 2008 versions. So I tend to think it's better to upgrade the actual Delicate repo packages first. Is that a good idea ?

I've already tried to build the recent version, but since there were some major issues with the upgrade I postponed this activity. Version 0.9.28 might be old, but the most critical stuff works better than well in this version and the builds usually need just minor patching.

There is another 'trap'. With a newer uclibc we can make perhaps newer packages and sometimes it means that the programs are a lot bigger and perform a lot worser on older machines.
An example, I've made the PKGBUILD for Osmo, I've tried the latest but that didn't work (..blabla... too old). So I took an older one and it was rather shocking, the sourcecode was about 3 times shorter and you couldn't hardly tell the difference between the first and the latest edition.
For me it was a kind of an eyeopener, and if I want to play it save I take a look in the 'Debian Lenny' or 'Ubuntu Hardy' packages before I look at Arch or Aur.
Comparing wouldn't hurt I guess...


RE: PKGBUILD files - nl2stk - 12-30-2011 09:22 AM

Another build, Abuse a 2d shoot/platform game, This build is without OpenGL and timidity (a kind of software synth) support, and just plain SDL.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Lukas Fleischer

pkgname=abuse
pkgver=0.8
pkgrel=1
pkgdesc='A side-scroller action game that pits you against ruthless alien killers.'
url='http://abuse.zoy.org/'
license=('GPL' 'custom')
depends=('gcc' 'uclibc' 'sdl' 'sdl_mixer')
install='abuse.install'
source=("http://abuse.zoy.org/raw-attachment/wiki/download/${pkgname}-${pkgver}.tar.gz")
md5sums=('ec678b8dc8d00e0382d8c805c6438489')

build() {
  cd "${srcdir}/abuse-${pkgver}"

  ./configure --prefix=/usr --host=$CHOST --build=$CHOST \
  --with-assetdir=/usr/share/abuse/orig --with-x
  make || return 1
  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}/usr/share/licenses/abuse"
  sed -n '1,/^$/p' src/view.cpp > "${pkgdir}/usr/share/licenses/abuse/orig.code.license"
}

The abuse.install

Code:
# arg 1:  the new package version
post_install() {
#  echo "If you get a BOSS_ANT error trying to run abuse, copy /usr/share/games/abuse/gamma.lsp to ~/.abuse"
   echo "Abuse uses the original game levels by default.  To use the frabs levels"
   echo "use '-datadir' or set 'datadir' in the abuserc to /usr/share/abuse/frabs"
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
    post_install
}

op=$1
shift
$op $*

---EDIT:
This built contains a .desktop file and the icon is in different (PNG) sizes in /usr/share/icons/hicolor


RE: PKGBUILD files - nl2stk - 12-30-2011 12:41 PM

Gmp is another library which is needed by several programs.

Code:
# Maintainer: theo - nl2stk
# Thanks to: Allan McRae

pkgname=gmp
pkgver=5.0.2
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
url="http://gmplib.org/"
depends=('gcc' 'uclibc' 'bash')
license=('LGPL3')
install=gmp.install
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
md5sums=('0bbaedc82fb30315b06b1588b9077cd3')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --host=$CHOST --build=${CHOST} \
    --prefix=/usr --infodir=/usr/share/info \
    --enable-cxx
  make || return 1
  make DESTDIR="${pkgdir}" install
}

And the needed gmp.install

Code:
info_dir=usr/share/info
info_files=(gmp.info gmp.info-1 gmp.info-2)

post_install() {
  [ -x usr/bin/install-info ] || return 0
  for f in ${info_files[@]}; do
    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
  done
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  [ -x usr/bin/install-info ] || return 0
  for f in ${info_files[@]}; do
    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
  done
}
op=$1
shift
$op $*


Gstreamer, not the latest due 'blabla.. too old' issues. But it's a version above '0.10' so I believe most programs would take it :]

Code:
# Maintainer: theo - nl2stk
# Thanks to: Jan de Groot

pkgname=gstreamer
pkgver=0.10.5
pkgrel=1
pkgdesc="GStreamer Multimedia Framework"
license=('LGPL')
url="http://gstreamer.freedesktop.org"
depends=('libxml2' 'glib2')
source=(${url}/src/gstreamer/gstreamer-${pkgver}.tar.bz2)
md5sums=('f088c1303f19f0423f35d699deed92e3')

build() {
  cd "${srcdir}/gstreamer-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
    --with-package-name="GStreamer (Archlinux)" \
    --with-package-origin="http://www.archlinux.org/" \
    --disable-gtk-doc --disable-static \
    --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make DESTDIR="${pkgdir}" install

  #Remove unversioned gst-* binaries to get rid of conflicts
  cd "${pkgdir}/usr/bin"
  for bins in `ls *-0.10`; do
    rm -f ${bins/-0.10/}
  done
}



RE: PKGBUILD files - nl2stk - 12-30-2011 09:01 PM

A remake from a classic ms-dos game called 'bomns', a 2 player deathmatch game.

Code:
# Maintainer: theo - nl2stk

pkgname=bomns
pkgver=0.99.2
pkgrel=1
pkgdesc='Bomns for linux, an old-school deathmatch game.'
url='http://greenridge.sourceforge.net/index.php'
license=('GPL2')
depends=('gtk2' 'sdl' 'sdl_mixer')
source=("http://switch.dl.sourceforge.net/sourceforge/greenridge/bomns-${pkgver}.tar.gz")
md5sums=('22579fa010c1045f193be83835a5104d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
  make || return 1
  make DESTDIR="${pkgdir}" install
}

--EDIT:
Has an .desktop file and icon in different sizes (png) in /usr/share/icons/hicolor


RE: PKGBUILD files - delix - 12-30-2011 10:03 PM

This is the current PKGBUILD from Arch with the shal sums replaced by md5sums

Code:
# Maintainer: delix
# Contributor: Dincer Celik <dincer@bornovali.com>

pkgname=localepurge
pkgver=0.6.2+nmu2
pkgrel=3
pkgdesc="Script to remove disk space wasted for unneeded localizations."
arch=('any')
url="http://packages.debian.org/source/sid/localepurge"
license=('GPL')
backup=('etc/locale.nopurge')
source=("http://ftp.de.debian.org/debian/pool/main/l/localepurge/${pkgname}_${pkgver}.tar.gz"
        "http://fgr.bitbucket.org/im/${pkgname}.patch"
        "http://fgr.bitbucket.org/im/${pkgname}.8.patch"
        "http://fgr.bitbucket.org/im/${pkgname}.config.patch"
        "http://fgr.bitbucket.org/im/locale.nopurge")
md5sums=('6a1e13f32cd5f7ca842db9acdf1b9cb4'
    'f025bf5f6cc529cdd7d532c5e822bd73'
    'c9a5ab2722d70b3206fa10ba8fc95286'
    'f5557e0e201b6c2e57791b8f772c9523'
    '26517310bba6496cd27c9ad87c600cda')


build()
{
  #cd "${srcdir}/${pkgname}-${pkgver}"
  patch -uN ${srcdir}/${pkgname}-${pkgver}/usr/sbin/localepurge < ${srcdir}/localepurge.patch
  patch -uN ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.8 < ${srcdir}/localepurge.8.patch
  patch -uN ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.config < ${srcdir}/localepurge.config.patch
  install -D -m755 ${srcdir}/${pkgname}-${pkgver}/usr/sbin/localepurge ${pkgdir}/usr/sbin/localepurge
  install -D -m644 ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.8 ${pkgdir}/usr/share/man/man8/localepurge.8
  install -D -m755 ${srcdir}/${pkgname}-${pkgver}/debian/localepurge.config ${pkgdir}/usr/sbin/localepurge.config
  install -D -m644 locale.nopurge ${pkgdir}/etc/locale.nopurge
  if [ ! -e /var/cache/localepurge/localelist ]; then
    find /usr/share/locale -maxdepth 1 -type d -name "*" -printf "%f\n" | grep "^[a-z]" | cut -d" " -f1 | sort -u > ${srcdir}/localelist
  else
    cp /var/cache/localepurge/localelist ${srcdir}/localelist
  fi
  install -D -m644 ${srcdir}/localelist ${pkgdir}/var/cache/localepurge/localelist
}



RE: PKGBUILD files - tavvva - 12-30-2011 11:42 PM

(12-14-2011 02:33 PM)nl2stk Wrote:  Re: GIMP

I've take a look at 'The GIMP' and I *think* the next PKGBUILD is better.

...

It's still experimental and to be honest I'm not using GIMP that much. I'll get most of the time lost in the options.
But I think this build is more the way it should looklike than the other.

Well .... this looks really better ... The build was successful and all forgotten deps will be hopefully found and reported by users with clean installation :]

We could eventually add libexif once it's in the repo ... this would cause a missing dependency errors in the future if the package is rebuilt with libexif installed ... that would need more switches :]


RE: PKGBUILD files - tavvva - 12-30-2011 11:59 PM

(12-14-2011 03:51 PM)nl2stk Wrote:  GtkBalls is a simple but awesome logic (GTK) game, where you try to remove as many balls from the game field as you can. Is the clone of well-known DOS game "Lines".

seems to be OK ... in the repo now ...


RE: PKGBUILD files - nl2stk - 12-31-2011 10:15 AM

@Delix, thanks for the localepurge. I use it on my Debian/*buntu machines.

@Tavvva, the first GIMP pkgbuild file was nothing more than a 'copy' and 'paste' for the 'old' Deli (I believe version 0.7 or 0.8).
It cames from the same site that published something about 'how to make Firefox 1.5 working with Deli'.
I mainly use the GIMP for convering pictures (Icons).
I'll take a screenshot from GTKBalls and put it where it belongs :]