summaryrefslogtreecommitdiffstats
path: root/xorg/debuild/debX11rdp.sh
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/debX11rdp.sh
parentec7d8680084c794357d0786767eda903d9c19e26 (diff)
downloadxrdp-proprietary-bd8df09b6d46288dde5f163ba3823f7ec5d81b8e.tar.gz
xrdp-proprietary-bd8df09b6d46288dde5f163ba3823f7ec5d81b8e.zip
remove unused files, include arch info
Diffstat (limited to 'xorg/debuild/debX11rdp.sh')
-rwxr-xr-xxorg/debuild/debX11rdp.sh7
1 files changed, 6 insertions, 1 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