Add i-nex bash script to run i-nex using i-nex command.
Add i-nex script to debian/i-nex.install Remove stupid scripts from debian/rules Add to Makefile new option make deb make uninstall make deb can now download and install dependency to build and build i-nex to deb package. make uninstall: remove i-nex directories and binary files from system make install: install i-nex binary files and create nedded directories in system
This commit is contained in:
parent
0c3e7a35e3
commit
9989701802
59
Makefile
59
Makefile
|
@ -1,22 +1,55 @@
|
|||
# ZSH OR DIE, PUNKS
|
||||
|
||||
bindir ?= /usr/bin
|
||||
bzr_revision =
|
||||
dependency_build ?= bzr \
|
||||
devscripts \
|
||||
pkg-config \
|
||||
dpkg-dev \
|
||||
gambas3-dev \
|
||||
gambas3-gb-image \
|
||||
gambas3-gb-gtk \
|
||||
gambas3-gb-form \
|
||||
gambas3-gb-desktop \
|
||||
gambas3-gb-form-dialog \
|
||||
gambas3-gb-settings \
|
||||
gambas3-gb-form-stock \
|
||||
dpkg \
|
||||
grep \
|
||||
mount \
|
||||
procps \
|
||||
x11-xserver-utils \
|
||||
lsb-release \
|
||||
bash \
|
||||
coreutils \
|
||||
sed \
|
||||
pciutils \
|
||||
x11-utils \
|
||||
mesa-utils \
|
||||
hostname
|
||||
|
||||
make:
|
||||
gcc edid-decode.c -g -Wall -o inex-edid
|
||||
/usr/bin/gbc3 -e -a -g -t -p -m src/i-nex
|
||||
gba3 src/i-nex
|
||||
|
||||
deb:
|
||||
|
||||
apt-get install $(dependency_build)
|
||||
./build-deb
|
||||
|
||||
clean:
|
||||
rm -f inex-edid
|
||||
rm -Rf `find . -name ".gambas"`
|
||||
rm -Rf `find . -name "*.gambas"`
|
||||
rm -Rf `find . -name "screenfetch-dev"`
|
||||
rm -Rf `find . -name ".directory"`
|
||||
rm -Rf debian/files
|
||||
rm -Rf debian/i-nex
|
||||
rm -Rf debian/i-nex.debhelper.log
|
||||
rm -Rf debian/i-nex.postinst.debhelper
|
||||
rm -Rf debian/i-nex.postrm.debhelper
|
||||
rm -Rf debian/i-nex.substvars
|
||||
rm -Rf debian/changelog1
|
||||
|
||||
|
||||
install:
|
||||
|
@ -30,6 +63,11 @@ install:
|
|||
mkdir -p $(DESTDIR)/usr/share/i-nex/pastebinit/pastebin.d/
|
||||
mkdir -p $(DESTDIR)/usr/share/i-nex/pastebinit/po/
|
||||
mkdir -p $(DESTDIR)/usr/share/i-nex/pastebinit/utils/
|
||||
chmod +x i-nex
|
||||
chmod +x inex-edid
|
||||
chmod +x debian/check_kernel
|
||||
chmod +x debian/i-nex-lspci
|
||||
install -m 0755 i-nex $(DESTDIR)$(bindir)
|
||||
install -m 0755 inex-edid $(DESTDIR)$(bindir)
|
||||
install -m 0755 src/i-nex/i-nex.gambas $(DESTDIR)$(bindir)
|
||||
install -m 0755 src/i-nex/logo/i-nex.0.4.x.png $(DESTDIR)/usr/share/pixmaps/
|
||||
|
@ -54,4 +92,21 @@ install:
|
|||
install -m 0755 README $(DESTDIR)/usr/share/i-nex/pastebinit/
|
||||
install -m 0755 release.conf $(DESTDIR)/usr/share/i-nex/pastebinit/
|
||||
install -m 0755 test.sh $(DESTDIR)/usr/share/i-nex/pastebinit/
|
||||
install -m 0755 utils/* $(DESTDIR)/usr/share/i-nex/pastebinit/utils/
|
||||
install -m 0755 utils/* $(DESTDIR)/usr/share/i-nex/pastebinit/utils/
|
||||
update-desktop-database
|
||||
update-menus
|
||||
uninstall:
|
||||
|
||||
rm $(bindir)/i-nex
|
||||
rm $(bindir)/inex-edid
|
||||
rm $(bindir)/i-nex.gambas
|
||||
rm /usr/share/pixmaps/i-nex.0.4.x.png
|
||||
rm /usr/share/applications/i-nex.desktop
|
||||
rm $(bindir)/check_kernel
|
||||
rm $(bindir)/i-nex-lspci
|
||||
rm /etc/apport/crashdb.conf.d/inex-crashdb.conf
|
||||
rm /usr/share/apport/package-hooks/i-nex.py
|
||||
rm -Rf /usr/share/doc/i-nex
|
||||
rm -Rf /usr/share/i-nex
|
||||
update-desktop-database
|
||||
update-menus
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
DATE=$(date -R)
|
||||
BZR_RV=$(awk {'print $1'} ./.bzr/branch/last-revision)
|
||||
INEX_VERSION=$(grep "Version=" src/i-nex/.project | cut -d "=" -f 2)
|
||||
DATE_Y_M_D=$(date +%Y%m%d)
|
||||
|
||||
echo "i-nex ($INEX_VERSION-0~$BZR_RV~$DATE_Y_M_D) unstable; urgency=low
|
||||
|
||||
* next unstable
|
||||
|
||||
-- eloaders <eloaders@yahoo.com> $DATE
|
||||
" >debian/changelog1
|
||||
|
||||
cp debian/changelog debian/changelog_bak
|
||||
cat debian/changelog >> debian/changelog1
|
||||
mv debian/changelog1 >> debian/changelog
|
||||
dpkg-buildpackage
|
||||
mv debian/changelog_bak debian/changelog
|
|
@ -22,4 +22,5 @@ README usr/share/i-nex/pastebinit
|
|||
release.conf usr/share/i-nex/pastebinit
|
||||
test.sh usr/share/i-nex/pastebinit
|
||||
utils usr/share/i-nex/pastebinit
|
||||
inex-edid usr/bin
|
||||
inex-edid usr/bin
|
||||
i-nex usr/bin
|
|
@ -1,17 +1,3 @@
|
|||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE=1
|
||||
|
||||
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
|
||||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
CROSS=CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
|
||||
endif
|
||||
|
||||
%:
|
||||
dh $@
|
|
@ -1,9 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Icon=./.icon.png
|
||||
|
||||
[Dolphin]
|
||||
Timestamp=2013,10,18,11,13,36
|
||||
Version=3
|
||||
|
||||
[Settings]
|
||||
HiddenFilesShown=true
|
|
@ -1,3 +1,5 @@
|
|||
* Mon Oct 21 2013 eloaders <eloaders@yahoo.com> 0.5.6
|
||||
|
||||
* Fri Oct 18 2013 eloaders <eloaders@yahoo.com> 0.5.4
|
||||
|
||||
* Thu Oct 17 2013 eloaders <eloaders@yahoo.com> 0.5.4
|
||||
|
|
|
@ -24,9 +24,9 @@ Vendor=i-nex
|
|||
Address=eloaders@yahoo.com
|
||||
Url=tuxportal.pl
|
||||
License=General Public Licence
|
||||
PackageName=i-nex-0.5.4
|
||||
PackageName=i-nex-0.5.6
|
||||
Packager=1
|
||||
Systems=ubuntu
|
||||
Systems=autotools
|
||||
Menus=suse:"Settings/Hardware Settings"
|
||||
Categories=suse:"HardwareSettings;Settings"
|
||||
Groups=suse:"Development"
|
||||
|
|
|
@ -23,7 +23,6 @@ SearchString=True
|
|||
[OpenFile]
|
||||
File[1]=".src/Finfosys.form"
|
||||
File[2]=".src/Global.class:92.57"
|
||||
Active=3
|
||||
File[3]=".src/About.form"
|
||||
File[4]=".src/About.class:41.49"
|
||||
File[5]=".src/battery.module:70.77"
|
||||
|
@ -33,7 +32,8 @@ File[8]=".src/ScreenShot.class:12.65"
|
|||
File[9]=".src/ScreenShotM.module:7.0"
|
||||
File[10]=".src/USB_Drives.module:13.0"
|
||||
File[11]=".src/Asound_Drives.module:33.27"
|
||||
File[12]=".src/Reportm.module:90.59"
|
||||
Active=12
|
||||
File[12]=".src/Reportm.module:4.15"
|
||||
File[13]=".src/FReport_Gen.form"
|
||||
File[14]=".src/FReport_Gen.class:28.37"
|
||||
File[15]=".src/Start_App_Args.form"
|
||||
|
|
Loading…
Reference in New Issue