aMule Forum

English => Distro-Specific Packages => Packages for development versions => Topic started by: atilla on February 12, 2008, 11:13:49 AM

Title: aMule-cvs Archlinux PKGBUILD
Post by: atilla on February 12, 2008, 11:13:49 AM
i have written an aMule-cvs PKGBUILD for archlinux.It can be used for every release of aMule-cvs packages.You can change configure option for your needs.Enjoy...

Quote
# Contributor: Atilla ÖNTAŞ <atilla_ontas@hotmail.com>
_pkdate=`date +%Y%m%d`
pkgname=amule-cvs
pkgver=$_pkdate
pkgrel=1
pkgdesc="aMule is a eMule-like client for ed2k p2p network (development snapshot)."
arch=("i686" "x86_64")
license=('GPL')
url="http://www.amule.org"
depends=('wxgtk>=2.8.0.1' 'gd>=2.0.34' 'binutils>=2.17.50.0.18' 'libpng>=1.2.16' 'geoip')
makedepends=('crypto++')
provides=('amule')
conflicts=('amule')
source=(http://www.hirnriss.net/files/cvs/aMule-CVS-$_pkdate.tar.bz2)

build() {
  cd ${startdir}/src/amule-cvs
  ./configure --prefix=/usr \
              --enable-optimize \
              --disable-embedded_crypto \
              --disable-debug \
              --enable-utf8-systray \
              --enable-cas \
              --enable-wxcas \
              --enable-amule-daemon \
              --enable-amulecmd \
              --enable-amule-gui \
              --enable-alc \
              --enable-alcc \
         --enable-webserver
              --enable-geoip
              --enable-remote
  make || return 1
  make DESTDIR=${startdir}/pkg install
}
Title: Re: aMule-cvs Archlinux PKGBUILD
Post by: wuischke on February 12, 2008, 12:56:56 PM
Hi,

There's another one in AUR (http://aur.archlinux.org/packages.php?do_Details=1&ID=3232&O=0&L=0&C=0&K=amule&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd)

The official Arch CVS & SVN PKGBUILD guidelines (http://wiki.archlinux.org/index.php/Arch_CVS_%26_SVN_PKGBUILD_guidelines#A_few_tips) discourage the usage of your "dynamic dates". It might be OK, because yours is not in AUR, but I prefer PKGBUILDs to be nice and clean. ;)

Quote
For cvs pkgs you should avoid pkgver=`date +%y%m%d` - this also interferes with the functionality of the AUR. Instead it is still possible to use a date format for the $pkgver variable and to use the cvs -D option to check out code from that date (see below)
Title: Re: aMule-cvs Archlinux PKGBUILD
Post by: atilla on February 13, 2008, 05:37:09 AM
Hi. I'm new on archlinux so, i guess i missed something.Please check out new PKGBUILD below.I hope it's O.K.I don't post that to AUR, because i thought that i surely missed something. Yes, i know ther is an already a amule-cvs entry.But i wanted to make some stuff automated. I couldn't use that all of the cvs commands described in arch wiki, because of www.hirnriss.net's cvs structure (i know i missed something too,but what) thanks ...

Code: [Select]
# Contributor: Atilla ÖNTAŞ <atilla_ontas@hotmail.com>
pkgname=amule-cvs
pkgver=20080212
pkgrel=1
pkgdesc="aMule is a eMule-like client for ed2k p2p network (development snapshot)."
arch=("i686" "x86_64")
license=('GPL')
url="http://www.amule.org"
depends=('wxgtk>=2.8.0.1' 'gd>=2.0.34' 'binutils>=2.17.50.0.18')
makedepends=('crypto++')
provides=('amule')
conflicts=('amule')
source=(http://www.hirnriss.net/files/cvs/aMule-CVS-$pkgver.tar.bz2)
md5sums=()

_cvsroot="http://www.hirnriss.net/files/cvs"
_cvsmod="amule"

build() {
  msg "Starting make..."

  cd ${startdir}/src/$pkgname
  ./configure --prefix=/usr \
              --enable-optimize \
              --disable-embedded_crypto \
              --disable-debug \
              --enable-utf8-systray \
              --enable-cas \
              --enable-wxcas \
              --enable-amule-daemon \
              --enable-amulecmd \
              --enable-amule-gui \
              --enable-alc \
              --enable-alcc \
              --enable-webserver
              --enable-geoip
              --enable-remote
  make || return 1
  make DESTDIR=${startdir}/pkg install
}
Title: Re: aMule-cvs Archlinux PKGBUILD
Post by: wuischke on February 13, 2008, 09:26:22 AM
Sorry, we don't have "real" CVS/SVN access yet, only tarballs. So you can ignore the _cvsroot and _cvsmod variables and savely delete these lines.

When using a fixed date, you can insert the MD5sums, too. Just do a makepkg -g >> PKGBUILD in the directory containing the tarball and move the md5 line up afterwards.

Now, regarding your configure-flags, some of them are not used anymore and can be removed. (--disable-embedded-crypto, --enable-utf8-systray, --enable-remote) Check ./configure --help for the available options.

Having said that: Thanks for your work. I'll now go and critize the PKGBUILD in AUR. ;)