You are not logged in.
Pages: 1
**Warning, this is my first PKGBUILD**
I need some help with this PKGBUILD.
pkgname=dvorak7min
pkgver=1.6.1
pkgrel=1
pkgdesc="dvorak7min is a simple ncurses-based typing tutor for those trying to become fluent with the Dvorak keyboard layout"
url="http://freshmeat.net/projects/dvorak7mintutor/"
license=""
depends=(ncurses)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://freshmeat.net/redir/dvorak7mintutor/2108/url_tgz/$pkgname-$pkgver.tar.gz)
md5sums=(0dbeb1ac986893f1b14f70e392b9009e)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
When I run makepkg, I get the following:
[paulb@zangetsu ~]$ makepkg
==> Entering fakeroot environment
==> Making package: dvorak7min 1.6.1-1 (Fri Mar 10 10:39:50 PST 2006)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Downloading dvorak7min-1.6.1.tar.gz
--10:39:50-- http://freshmeat.net/redir/dvorak7mintutor/2108/url_tgz/dvorak7min-1.6.1.tar.gz
=> `dvorak7min-1.6.1.tar.gz'
Resolving freshmeat.net... 66.35.250.168
Connecting to freshmeat.net|66.35.250.168|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.linalco.com/ragnar/dvorak7min-1.6.1.tar.gz [following]
--10:39:50-- http://www.linalco.com/ragnar/dvorak7min-1.6.1.tar.gz
=> `dvorak7min-1.6.1.tar.gz'
Resolving www.linalco.com... 80.36.33.30
Connecting to www.linalco.com|80.36.33.30|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
==> Validating source files with MD5sums
dvorak7min-1.6.1.tar.gz ... Passed
==> Extracting Sources...
==> tar --use-compress-program=gzip -xf dvorak7min-1.6.1.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
./PKGBUILD: line 18: ./configure: No such file or directory
make: `dvorak7min' is up to date.
install -d /usr/local/games/bin
install: cannot create directory `/usr/local/games/bin': Permission denied
make: *** [install] Error 1
==> ERROR: Build Failed. Aborting...
Any ideas or suggestions?
Offline
pkgname=dvorak7min
pkgver=1.6.1
pkgrel=1
pkgdesc="dvorak7min is a simple ncurses-based typing tutor for those trying to become fluent with the Dvorak keyboard layout"
url="http://freshmeat.net/projects/dvorak7mintutor/"
license=""
depends=(ncurses)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://freshmeat.net/redir/dvorak7mintutor/2108/url_tgz/$pkgname-$pkgver.tar.gz)
md5sums=(0dbeb1ac986893f1b14f70e392b9009e)
build() {
cd $startdir/src/$pkgname-$pkgver
install_dir="$startdir/pkg/usr/local/games/bin"
make INSTALL=$install_dir || return 1
make INSTALL=$install_dir install || return 1
I'm not sure if arch supports /usr/local/games but it builds ok
Offline
Thanks, that pointed me in the right direction.
EDIT: Next try...
#Contributor:Paul <paul2lv(at)gmail(dot)com>
pkgname=dvorak7min
pkgver=1.6.1
pkgrel=1
pkgdesc="dvorak7min is a simple ncurses-based typing tutor for those trying to become fluent with the Dvorak keyboard layout"
url="http://freshmeat.net/projects/dvorak7mintutor/"
depends=(ncurses)
license="GPL"
source=(http://www.linalco.com/ragnar/$pkgname-$pkgver.tar.gz)
md5sums=(0dbeb1ac986893f1b14f70e392b9009e)
build() {
cd $startdir/src/$pkgname-$pkgver
install_dir="$startdir/pkg/usr/bin"
make INSTALL=$install_dir || return 1
make INSTALL=$install_dir install || return 1
}
If this looks good, I'll put it in the AUR.
Offline
#Contributor:Paul <paul2lv(at)gmail(dot)com>
pkgname=dvorak7min
pkgver=1.6.1
pkgrel=1
pkgdesc="dvorak7min is a simple ncurses-based typing tutor for those trying to become fluent with the Dvorak keyboard layout"
url="http://freshmeat.net/projects/dvorak7mintutor/"
depends=(ncurses)
That should be 'ncurses' in single quotes for pkgbuild consistancy.
license="GPL"
source=(http://www.linalco.com/ragnar/$pkgname-$pkgver.tar.gz)
md5sums=(0dbeb1ac986893f1b14f70e392b9009e)
The some goes for you md5sums
build() {
cd $startdir/src/$pkgname-$pkgver
install_dir="$startdir/pkg/usr/bin"
All local vars should start with an underscore for consistancy. So in this case maybe $_installdir instead of install_dir.
make INSTALL=$install_dir || return 1
make INSTALL=$install_dir install || return 1
}
Otherwise, run namcap on the package it creates make sure everything is in order, and I'd say it's ready for the aur.
Offline
Pages: 1