aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule-cvs Archlinux PKGBUILD  (Read 5908 times)

atilla

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 69
  • This is the man who saves a whole Nation!!
    • Mandriva Türkiye
aMule-cvs Archlinux PKGBUILD
« 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
}
Logged
Peace at Home, Peace in the World!
                            M.Kemal ATATÜRK

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4379
Re: aMule-cvs Archlinux PKGBUILD
« Reply #1 on: February 12, 2008, 12:56:56 PM »

Hi,

There's another one in AUR

The official Arch CVS & SVN PKGBUILD guidelines 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)
Logged

atilla

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 69
  • This is the man who saves a whole Nation!!
    • Mandriva Türkiye
Re: aMule-cvs Archlinux PKGBUILD
« Reply #2 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
}
« Last Edit: February 13, 2008, 05:45:16 AM by atilla »
Logged
Peace at Home, Peace in the World!
                            M.Kemal ATATÜRK

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4379
Re: aMule-cvs Archlinux PKGBUILD
« Reply #3 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. ;)
Logged