-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,38 @@ | ||
# Maintainer: Ner0 | ||
# Maintainer: aaditya <aaditya_gnulinux[at]zoho[dot]com> | ||
|
||
pkgname=i-nex | ||
pkgver=0.5.6 | ||
prgname=I-Nex | ||
pkgver=0.5.8 | ||
pkgrel=1 | ||
pkgdesc="System information tool like hardinfo, sysinfo" | ||
arch=('any') | ||
url="http://tuxportal.pl/" | ||
url="https://github.com/eloaders/I-Nex" | ||
license=('LGPL3') | ||
depends=('gambas3-runtime' 'gambas3-gb-image' 'gambas3-gb-gtk' 'gambas3-gb-form' 'gambas3-gb-desktop' 'gambas3-gb-settings' 'gambas3-gb-form-dialog' 'gambas3-gb-qt4' | ||
'gambas3-gb-form-mdi' 'gambas3-gb-form-stock' 'util-linux' 'procps' 'xorg-server-utils' 'gksu' 'lsb-release' 'coreutils' 'pciutils' 'inetutils' 'mesa-demos') | ||
makedepends=('bzr' 'gambas3-devel' 'gcc') | ||
|
||
_bzrtrunk=lp:i-nex | ||
_bzrmod=i-nex | ||
depends=('gcc' 'gambas3-gb-image' 'gambas3-gb-gtk' 'gambas3-gb-form' 'gambas3-gb-desktop' 'gambas3-gb-settings' 'gambas3-gb-form-dialog' 'gambas3-gb-qt4' 'gambas3-gb-form-mdi' 'gambas3-gb-form-stock' 'xorg-server-utils' 'lsb-release' 'mesa-demos') | ||
makedepends=('gambas3-devel') | ||
conflicts=('i-nex-bzr') | ||
source=("https://github.com/eloaders/I-Nex/archive/0.5.8.tar.gz") | ||
sha1sums=('e3b297c5726a175319cbf734d90d47f8b34c7733') | ||
|
||
build() { | ||
msg "Connecting to Bazaar server...." | ||
|
||
if [[ -d "$_bzrmod" ]]; then | ||
cd "$_bzrmod" && bzr pull "$_bzrtrunk" -r "$pkgver" && cd .. | ||
msg "The local files are updated." | ||
else | ||
bzr branch "$_bzrtrunk" "$_bzrmod" -r "$pkgver" | ||
fi | ||
|
||
msg "BZR checkout done or server timeout" | ||
msg "Starting make..." | ||
|
||
rm -rf "$_bzrmod-build" | ||
cp -rf $_bzrmod $_bzrmod-build | ||
cd "$_bzrmod-build/src/i-nex" | ||
|
||
cd "${srcdir}/${prgname}-${pkgver}/src/i-nex" | ||
echo "Starting make..." | ||
gbc3 -eagtpmv | ||
gba3 | ||
cd "${srcdir}/${prgname}-${pkgver}/ | ||
gcc edid-decode.c -g -Wall -o inex-edid | ||
} | ||
package() { | ||
cd "$srcdir/$_bzrmod-build/" | ||
|
||
cd "${srcdir}/${prgname}-${pkgver}" | ||
sed -i 's|i-nex.gambas|i-nex|' debian/i-nex.desktop | ||
|
||
install -Dm755 inex-edid "$pkgdir/usr/bin/inex-edid" | ||
install -Dm755 src/i-nex/i-nex.gambas "$pkgdir/usr/bin/i-nex" | ||
install -Dm644 src/i-nex/logo/i-nex.0.4.x.png "$pkgdir/usr/share/pixmaps/i-nex.0.4.x.png" | ||
install -Dm644 debian/i-nex.desktop "$pkgdir/usr/share/applications/i-nex.desktop" | ||
install -dm755 "$pkgdir/usr/share/i-nex/pastebinit" | ||
cp -rf pastebin.d utils pastebinit{,.xml} release.conf test.sh "$pkgdir/usr/share/i-nex/pastebinit" | ||
|
||
sed -i 's|python$|python2|' "$pkgdir/usr/share/i-nex/pastebinit/pastebinit" | ||
} | ||
} | ||
# vim:set ts=2 sw=2 et: |