Open nerun opened 1 year ago
This is very useful. One little thing: Adding "--pkgversion=\<version>" so that the version is set correctly.
Updated, thank you!
Nice, but get error: https://github.com/v1cont/yad/issues/227
i Get:
any help? i just want to use steamtinkerlaunch to run Vortex mod manager
Did you did this before?
autoreconf -ivf && intltoolize --force && ./configure && make -j $(nproc)
And you must change this line:
--pkgversion=<version> \
To the current yad version:
--pkgversion=13.0-1 \
yes i did the autoreconf -ivf && intltoolize --force && ./configure && make -j $(nproc) in that folder. now that i changed the line to "--pkgversion=13.0-1 \" i get this :/
Hmm, try with sudo
.
i tried that already as well :/
No idea so. Sorry.
Sorry, but i found an answer after so long...
Create some directories. They will not be populated by checkinstall, but checkinstall need them to create package:
sudo mkdir -pv \
/usr/local/share/aclocal \
/usr/local/share/applications \
/usr/local/share/icons/hicolor \
/usr/local/share/icons/hicolor/16x16/apps \
/usr/local/share/icons/hicolor/24x24/apps \
/usr/local/share/icons/hicolor/32x32/apps \
/usr/local/share/icons/hicolor/48x48/apps \
/usr/local/share/icons/hicolor/96x96/apps \
/usr/local/share/icons/hicolor/128x128/apps \
/usr/local/share/man/man1 \
/usr/local/share/glib-2.0
I wrote this little tutorial on how to create a debian package easily. It would be interesting to add these instructions to the GitHub Wiki section.
Creating a Debian Package
1) Install required packages
2) Download and extract
3) Preparation
Generate build scripts and configuration files:
Create some directories. They will not be populated by checkinstall, but checkinstall need them to create package:
4) Checkinstall tool
Create a
description-pak
:This file will be used by
checkinstall
to create a summary that can be read by some tools likeapt search yad
. This is the default text used by package 0.40 available in Debian and Ubuntu repositories.Create the package:
Meanings:
--deldoc=yes
--deldesc=yes
--delspec=yes
These ones go inside control file, inside debian package:
5. Install package
sudo apt install ./yad_*.deb
This short command use regex and will install any yad package in the current dir. The use of
apt
instead ofdpkg
allows to install dependencies automatically, that's why you should provide the option./
in front of the package name.