You are not logged in.
Pages: 1
I found krd (http://krdm.sourceforge.net/), which appears to be a better alternative to krdc. I have been unable to write a working PKGBUILD.
running makepkg reports this:
make[2]: Leaving directory `/home/xxx/Desktop/build_krd/src/krd/src'
make[1]: Leaving directory `/home/xxx/Desktop/build_krd/src/krd/src'
make[1]: Entering directory `/home/xxx/Desktop/build_krd/src/krd'
make[2]: Entering directory `/home/xxx/Desktop/build_krd/src/krd'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/xxx/Desktop/build_krd/src/krd'
make[1]: Leaving directory `/home/xxx/Desktop/build_krd/src/krd'
==> Tidying install...
-> Compressing man pages...
-> Stripping debugging symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
bsdtar: Failed to open '/home/xxx/packages/krd-1.6-1-i686.pkg.tar.gz': No such file or directory
==> ERROR: Failed to create package file.
I have no programming experience. I would just like to have krd on arch...
here's my PKGBUILD:
# Contributor: Your Name <youremail@domain.com>
pkgname=krd
pkgver=1.6
pkgrel=1
pkgdesc=""
arch=(i686)
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://surfnet.dl.sourceforge.net/sourceforge/krdm/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('a65e244891df6bd3986bffd9dd0a88d0') #generate with 'makepkg -g'
build() {
[ "$QTDIR" = "" ] && source /etc/profile.d/qt3.sh
[ "$KDEDIR" = "" ] && source /etc/profile.d/kde.sh
cd "$srcdir/$pkgname"
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
Offline
It's looking for this directory:
/home/xxx/packages/
It's probably specified in your makepkg.conf. Look for PKGDEST=. Maybe you forgot to create the directory.
Offline
Code did not compile, added dirty workaroud (cannot include iostream.h with gcc 4.3.0, should use <iostream> instead). The following PKGBUILD works for me, but the error you are posting is completely different...
# Contributor: Your Name <youremail@domain.com>
pkgname=krd
pkgver=1.6
pkgrel=1
pkgdesc=""
arch=(i686)
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://surfnet.dl.sourceforge.net/sourceforge/krdm/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('a65e244891df6bd3986bffd9dd0a88d0') #generate with 'makepkg -g'
build() {
[ "$QTDIR" = "" ] && source /etc/profile.d/qt3.sh
[ "$KDEDIR" = "" ] && source /etc/profile.d/kde.sh
cd "$srcdir/$pkgname"
# Dirty workaroud
sed -e 's:iostream.h:iostream:g' -i src/main.cpp
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
Offline
I am sorry for answering right away. I haven't had much time lately...
the iostream workaround is needed. I forgot, that I tweaked main.cpp by hand. So after putting all files in the right directories, makepkgdoesn't report any problem.But still, there is no package after running it. I am going to search for the problem asap. for now, thanks to all!
Offline
check that you haven't set PKGDEST somewhere, most likely in /etc/makepkg.conf
if it is set, the built pkg is compressed there,
`. /etc/makepkg.conf;echo $PKGDEST`
maybe file feature request on the big tracker to link back to it in the pkgbuild root directory
here's a patch if you can't wait that long
--- /usr/bin/makepkg 2008-04-02 12:46:45.503650491 +0100
+++ ./makepkg 2008-04-02 12:48:16.413712048 +0100
@@ -864,12 +864,14 @@
# tar it up
msg2 "$(gettext "Compressing package...")"
- local pkg_file="$PKGDEST/${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}"
+ local pkg_file="${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}"
- if ! bsdtar -czf "$pkg_file" $comp_files $(ls); then
+ if ! bsdtar -czf "$PKGDEST/$pkg_file" $comp_files $(ls); then
error "$(gettext "Failed to create package file.")"
exit 1 # TODO: error code
fi
+
+ ln -sf "$PKGDEST/$pkg_file" "$startdir/$pkg_file"
}
create_xdelta() {
`patch /usr/bin/makepkg makepkg.patch`
Last edited by kumico (2008-04-02 11:50:15)
Offline
Pages: 1