summaryrefslogtreecommitdiffstats
path: root/xorg/debuild
diff options
context:
space:
mode:
authorGustavo Homem <gustavo@angulosolido.pt>2013-03-21 00:28:47 +0000
committerGustavo Homem <gustavo@angulosolido.pt>2013-03-21 00:28:47 +0000
commitbd8df09b6d46288dde5f163ba3823f7ec5d81b8e (patch)
tree8050f3788b41d0c113e417500b23dfa68c1a58c0 /xorg/debuild
parentec7d8680084c794357d0786767eda903d9c19e26 (diff)
downloadxrdp-proprietary-bd8df09b6d46288dde5f163ba3823f7ec5d81b8e.tar.gz
xrdp-proprietary-bd8df09b6d46288dde5f163ba3823f7ec5d81b8e.zip
remove unused files, include arch info
Diffstat (limited to 'xorg/debuild')
-rwxr-xr-xxorg/debuild/debX11rdp.sh7
-rw-r--r--xorg/debuild/x11rdp-files/DEBIAN/control2
2 files changed, 7 insertions, 2 deletions
diff --git a/xorg/debuild/debX11rdp.sh b/xorg/debuild/debX11rdp.sh
index dd80cbe9..23b1428e 100755
--- a/xorg/debuild/debX11rdp.sh
+++ b/xorg/debuild/debX11rdp.sh
@@ -10,16 +10,21 @@ PKGDEST=$4
PACKDIR=x11rdp-files
DESTDIR=$PACKDIR/opt
NAME=x11rdp
+ARCH=$( dpkg --print-architecture )
+
sed -i -e "s/DUMMYVERINFO/$VERSION-$RELEASE/" $PACKDIR/DEBIAN/control
+sed -i -e "s/DUMMYARCHINFO/$ARCH/" $PACKDIR/DEBIAN/control
# need a different delimiter, since it has a path
sed -i -e "s,DUMMYDIRINFO,$SRCDIR," $PACKDIR/DEBIAN/postinst
mkdir -p $DESTDIR
cp -Rf $SRCDIR $DESTDIR
-dpkg-deb --build $PACKDIR $PKGDEST/${NAME}_$VERSION-$RELEASE.deb
+dpkg-deb --build $PACKDIR $PKGDEST/${NAME}_$VERSION-${RELEASE}_${ARCH}.deb
# revert to initial state
rm -rf $DESTDIR
sed -i -e "s/$VERSION-$RELEASE/DUMMYVERINFO/" $PACKDIR/DEBIAN/control
+sed -i -e "s/$ARCH/DUMMYARCHINFO/" $PACKDIR/DEBIAN/control
+# need a different delimiter, since it has a path
sed -i -e "s,$SRCDIR,DUMMYDIRINFO," $PACKDIR/DEBIAN/postinst
diff --git a/xorg/debuild/x11rdp-files/DEBIAN/control b/xorg/debuild/x11rdp-files/DEBIAN/control
index 59a3f94d..149e9a83 100644
--- a/xorg/debuild/x11rdp-files/DEBIAN/control
+++ b/xorg/debuild/x11rdp-files/DEBIAN/control
@@ -2,6 +2,6 @@ Package: x11rdp
Version: DUMMYVERINFO
Section: unknown
Priority: optional
-Architecture: all
+Architecture: DUMMYARCHINFO
Maintainer: Angulo Solido <packaging@angulosolido.pt>
Description: X11rdp backend for the xrdp remote access server