You are not logged in.

#1 2008-11-07 04:25:17

ilikenwf
Member
Registered: 2008-06-23
Posts: 42
Website

Stuck On this One (gdkxft an antialiaser for gtk 1.2)

I can't get it to compile because some header files are in different locations, among other things...here's my PKGBUILD...it's good, nothing else is...

# Contributor:  ilikenwf/Matt Parnell <parwok@gmail.com>

pkgname=gdkxft
pkgver=1.5
pkgrel=1
pkgdesc="Adds antialiasing to fonts in gtk 1.2 apps"
url="http://gdkxft.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libxft')
makedepends=()
conflicts=()
provides=('gdkxft')
install=('gdkxft.install')
source=()
md5sums=()

source=(http://voxel.dl.sourceforge.net/sourceforge/gdkxft/gdkxft-$pkgver.tar.gz)

build() {
        cd $startdir/src/gdkxft-$pkgver
         ./configure
        make || return 1
        make DESTDIR=$startdir/pkg install
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "See the Readme at in order to set antialiasing settings so that you will actually see a difference. Failure to do so will result in no change."
}

Offline

#2 2008-11-07 07:15:22

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Stuck On this One (gdkxft an antialiaser for gtk 1.2)

Some remarks in regard to your PKGBUILD:

* Any messages to be read by the user or commands that need to be executed after installation, should be put in a .install file.
* Always use downloads.sourceforge.net and avoid specifying a mirror yourself.
* In the provides array, you place packages whose features your package provides. This is used to satisfy dependencies of other packages.
* The correct license is LGPL, not GPL.


Here's a revised PKGBUILD (please note that it may require further tweaking):

# Contributor:  ilikenwf/Matt Parnell <parwok@gmail.com>

pkgname=gdkxft
pkgver=1.5
pkgrel=1
pkgdesc="Adds antialiasing to fonts in gtk 1.2 apps"
arch=('i686' 'x86_64')
url="http://gdkxft.sourceforge.net/"
license=('LGPL')
depends=('libxft' 'gtk')
options=('!libtool')
install=gdkxft.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('ed594e24cf2aefe7a71f96425c1922e8')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  
  export CPPFLAGS="-I/usr/include/freetype2"
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --mandir=/usr/share/man
  make || return 1
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et:

gdkxft.install:

post_install() {
  usr/sbin/gdkxft_sysinstall
}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  usr/sbin/gdkxft_sysinstall -u
}

# vim:set ts=2 sw=2 et:

Offline

#3 2008-11-07 14:42:29

ilikenwf
Member
Registered: 2008-06-23
Posts: 42
Website

Re: Stuck On this One (gdkxft an antialiaser for gtk 1.2)

Thanks! It was kinda late when I did this. Hoepefully it will build.

Offline

#4 2008-11-07 18:42:59

ilikenwf
Member
Registered: 2008-06-23
Posts: 42
Website

Re: Stuck On this One (gdkxft an antialiaser for gtk 1.2)

You may as well add yourself as the contributor and put it in AUR. I won't maintain it since I didn't really write it.

Offline

Board footer

Powered by FluxBB