Author Topic: the Clipit Pkgfile example: trying to update it  (Read 3909 times)

dufresnep

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
the Clipit Pkgfile example: trying to update it
« on: Thu Oct 31 04:46:36 2019 »
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: [Select]
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 ]#
But getting that when trying to build it:
Code: [Select]
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>
Not sure what way to go from there.

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: the Clipit Pkgfile example: trying to update it
« Reply #1 on: Thu Oct 31 09:33:53 2019 »
Those news sources don't follow the "normal schema". If you check via the command:
Code: [Select]
bsdtar --list --file /usr/ports/personal/clipit/v1.4.4.tar.gzyou will see that they change the root directory in the archive.
Code: [Select]
...
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
You need to do:
Code: [Select]
cd ClipIt-$version instead of
Code: [Select]
cd $name-$versionWill 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
« Last Edit: Thu Oct 31 09:39:06 2019 by Thierry »

dufresnep

  • Newbie
  • *
  • Posts: 43
  • Karma: +0/-0
Re: the Clipit Pkgfile example: trying to update it
« Reply #2 on: Thu Oct 31 15:02:36 2019 »
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.