#!/bin/sh DIR=`pwd` mkdir -p deb/owncloud-client cd deb/owncloud-client rsync --files-from $DIR/client-build/install_manifest.txt / . cp /usr/local/lib/libocsync.so.$1 usr/local/lib cp /usr/local/lib/libowncloudsync.so.$1 usr/local/lib mkdir DEBIAN cat <> DEBIAN/control Package: owncloud-client Version: $1+debian+rpi1 Homepage: https://wiki.sgripon.net/doku.php?id=building_owncloud_client_for_raspberry_pi Depends: libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libqt4-network (>= 4:4.7.0~beta1), libqt4-test (>= 4:4.5.3), libqt4-xml (>= 4:4.5.3), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.7.0~beta1), libqtkeychain0 (>= 0.1.0), libstdc++6 (>= 4.4.0), libqtwebkit4, libqt4-xmlpatterns, libqt4-sql-sqlite Priority: optional Section: net Architecture: armhf Essential: no Installed-Size: 1024 Maintainer: Sebastien Gripon Description: GUI app to sync a folder to ownCloud Specify one ore more directories on the local machine to sync your ownCloud server, and always have your latest files wherever you are. Make a change to the files on one computer, it will flow across the others using these desktop sync clients. EOT cat <> DEBIAN/postinst #!/bin/sh set -e echo "Postinst running ..." ldconfig echo "Done" EOT chmod 0755 DEBIAN/postinst # Build package cd $DIR/deb dpkg-deb --build owncloud-client # Rename package mv owncloud-client.deb owncloud-client-$1_armhf.deb