Help > Cards: The Package Manager
the Clipit Pkgfile example: trying to update it
(1/1)
dufresnep:
Well, in http://nutyx.org/en/scenario-C
there is a quoted Clipit Pkgfile as a test of the configuration.
When I did try to run it unchanged... I was getting an error style:
intltool version > 0.23 needed (from memory... try it about 3 days ago).
I come to look where I can get source code on the net and come to update it to:
--- Code: ---root [ /usr/ports/personal/clipit ]# cat Pkgfile
description="ClipIt is a lightweight GTK+ clipboard manager."
url="http://clipit.rspwn.com/"
maintainer="Gilberto Xyhthyx <xyhthyx at gmail dot com>"
packager="Paul Dufresne"
makedepends=(gtk)
name=clipit
version=1.4.4
release=1
#https://github.com/CristianHenzel/ClipIt/archive/v1.4.4.tar.gz
source=(https://github.com/CristianHenzel/ClipIt/archive/v$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc
make
make DESTDIR=$PKG install
}
root [ /usr/ports/personal/clipit ]#
--- End code ---
But getting that when trying to build it:
--- Code: ---root [ /usr/ports/personal/clipit ]# mkpkg2
bash: mkpkg2: command not found
root [ /usr/ports/personal/clipit ]# ls
Pkgfile work
root [ /usr/ports/personal/clipit ]# pkg
pkg-config pkgadd pkgfind pkginfo pkgmk pkgmk2 pkgrm
root [ /usr/ports/personal/clipit ]# pkgmk2 -d
==> Configuration settings...
-> PKGMK_INSTALL: no
-> PKGMK_WORK_DIR: /usr/ports/personal/clipit/work
-> PKGMK_SOURCE_DIR: /srv/www/sources
==> WARNING: CLEAN IGNORED.
-> PKGMK_IGNORE_REPO: no
-> PKGMK_IGNORE_FOOTPRINT: yes
-> PKGMK_IGNORE_MD5SUM: yes
-> PKGMK_COMPRESS_PACKAGE: no
==> Package info...
-> name: clipit
-> version: 1.4.4
-> release: 1
==> Found Source file : </srv/www/sources/v1.4.4.tar.gz>
==> Building package: </usr/ports/personal/clipit/clipit1572496586x86_64.cards.tar.gz>
-> Extracting file with (bsdtar): </srv/www/sources/v1.4.4.tar.gz>
+ build
+ cd clipit-1.4.4
Pkgfile: line 15: cd: clipit-1.4.4: No such file or directory
====> ABORTING....
-> No files found in package </usr/ports/personal/clipit/work/pkg>
--- End code ---
Not sure what way to go from there.
Thierry:
Those news sources don't follow the "normal schema". If you check via the command:
--- Code: ---bsdtar --list --file /usr/ports/personal/clipit/v1.4.4.tar.gz
--- End code ---
you will see that they change the root directory in the archive.
--- Code: ---...
ClipIt-1.4.4/src/preferences.c
ClipIt-1.4.4/src/preferences.h
ClipIt-1.4.4/src/utils.c
ClipIt-1.4.4/src/utils.h
ClipIt-1.4.4/update-po
--- End code ---
You need to do:
--- Code: ---cd ClipIt-$version
--- End code ---
instead of
--- Code: --- cd $name-$version
--- End code ---
Will need to find another example.
Where did your read you should use pkgmk2 ?
This command is not maintained anymore. I guess I should remove it from the build
dufresnep:
I don't remember from where I got to know pkgmk2.
Might be just by ls.
At some point I found pkgmk was not working for me, but pkgmk2 was working fine.
I still have this feeling now... and a bit sad to learn you want to remove it.
I'll try to find you an example of pkgmk2 working better than pkgmk when I will be in front of my own computer again.
Navigation
[0] Message Index
Go to full version