I am learning to create my own packages via slkbuild and though I could create one successfully, I do not feel completely satisfied because I guess it will exist a better way of doing.
This is my SLKBUILD:
Code: Select all
#Maintainer: Icaro Perseo <icaro[dot]perseo[at]gmail[dot]com>
pkgname=dianara
pkgver=v1.2.4
pkgrel=rvm
arch=noarch
source=("http://download.savannah.gnu.org/releases/dianara/$pkgname-$pkgver.tar.gz" \
"dianara.desktop" \
"dianara-32x32.png" \
"dianara-64x64.png")
url="http://dianara.nongnu.org/"
docs=('CHANGELOG' 'BUGS' 'LICENSE' 'README' 'TODO' 'INSTALL')
slackdesc=\
(
#|-----handy-ruler---------------------------------------------------|
"Dianara - pump.io client"
"Dianara is a pump.io client, a free (as in freedom) desktop"
"application to manage a user's account on the pump.io distributed"
"social network. It is very usable for daily tasks, and it can even"
"do several things that the web interface can't, like editing posts"
"and comments, or uploading audio and video."
)
build() {
# how many build jobs?
JOBS="-j$(($(getconf _NPROCESSORS_ONLN)*2))"
NUMJOBS="${NUMJOBS:-"${JOBS}"}"
cd $startdir/src/$pkgname-$pkgver
mkdir build
cd build
qmake ..
make $NUMJOBS || return 1
make install
}
doinst() {
mv -u /usr/src/dianara-v1.2.4/dianara.desktop /usr/share/applications/
mv -u /usr/src/dianara-v1.2.4/dianara-32x32.png /usr/share/icons/hicolor/32x32/apps/dianara.png
mv -u /usr/src/dianara-v1.2.4/dianara-64x64.png /usr/share/icons/hicolor/64x64/apps/dianara.png
}
1. Is there any way to remove the *.png and *.desktop files automatically once the application is uninstalled? One reason why I had to add these files is that the application seems not copied once finalized the installation/compilation process automatically and I could not find a better way to do this.
2. Is there any way to automatically resolve dependencies? In this particular case the dependencies are:
Gslapt:
Code: Select all
qca
qjson
imagemagick
qca-ossl
Code: Select all
qoauth
http://guide.salixos.org/31PackageManagement.html
http://guide.salixos.org/325MakingaPack ... l-your-own
http://docs.salixos.org/wiki/New_to_Packaging
http://guide.salixos.org/324spkg.html
http://docs.salixos.org/wiki/Building_p ... h_slkbuild
http://slkbuild.sourceforge.net/
4. Moreover, is there anything else I should to know or to learn?
Thanking you for your help and patience...
Regards!!!