You are not logged in.

#1 2005-04-12 06:33:35

rabadash
Member
From: Seattle
Registered: 2005-04-01
Posts: 41

MakePkg and ABS

I've read all that I can find, but due to my inexperience with some terminology and general n00bness, I can't seem to get my head around abs.  I see people listing code like this for pkgbuilds:

pkgname=submount
pkgver=0.9
pkgrel=1
pkgdesc="System for automatic mounting/unmounting of removable devices"
url="http://submount.sourceforge.net"
depends=('glibc')
install=install.submount
source=(http://belnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f6abac328dbfb265eff18561065575c6')

build() {
  cd $startdir/src/$pkgname-$pkgver/subfs-$pkgver
  make || return 1
  install -D -m644 -o 0 -g 0 $startdir/src/$pkgname-$pkgver/subfs-$pkgver/subfs.ko 
        $startdir/pkg/lib/modules/`uname -r`/kernel/fs/subfs/subfs.ko
 
  cd $startdir/src/$pkgname-$pkgver/submountd-$pkgver
  ./configure
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Now I'm sure the answer's right in front of my face, but humor me. I know I need to copy and paste this somewhere (I don't know where), and then do something involving makepkg.  What exactly do I need to do to use makepkg?

Offline

#2 2005-04-12 06:50:54

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: MakePkg and ABS

It can be done in any directory. Myself, I make a new directory in /var/abs/local/<my-pkg>.
In the new directory paste your pkgbuild codes in a file and name it: "PKGBUILD". In same directory run "makepkg". If the pkgbuild is fine, that's all.

To install new local package:
pacman -A <pkg-name-x.x-x.pkg.tar.gz>
To remove:
pacman -R <pkg-name>


Markku

Offline

Board footer

Powered by FluxBB