diff options
author | Sämy Zehnder | 2015-06-23 11:19:11 +0200 |
---|---|---|
committer | Sämy Zehnder | 2015-06-23 11:19:11 +0200 |
commit | 15912128b38ad1a384e2e36ddf4354df170e67e5 (patch) | |
tree | ec464d82347afd7d54a743906e6371c2b4898661 | |
download | aur-15912128b38ad1a384e2e36ddf4354df170e67e5.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..31bd04fe4343 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = smssender-gui + pkgdesc = Fast and easy-to-use client for sending sms over internet gateways + pkgver = 3.3.1 + pkgrel = 1 + url = http://smssender.gorrion.ch + arch = i686 + arch = x86_64 + license = GPL + depends = crypto++ + depends = qjson + depends = qrencode + depends = qt4 + provides = smssender-gui + conflicts = smssender-gui + +pkgname = smssender-gui + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a34770cac1d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +#Maintainer: Sämy Zehnder <saemy@gorrion.ch> + +pkgname='smssender-gui' +pkgver=3.3.1 +_ubuntuver='0ubuntu2' +pkgrel=1 +pkgdesc="Fast and easy-to-use client for sending sms over internet gateways" +arch=('i686' 'x86_64') +url="http://smssender.gorrion.ch" +license=('GPL') +depends=('crypto++' 'qjson' 'qrencode' 'qt4') +provides=('smssender-gui') +conflicts=('smssender-gui') + +package() { + # Downloads the package files from the ubuntu repository. + + # Some settings. + _url_prefix="https://launchpad.net/~saemy-zehnder/+archive/ppa/+files" + _gateways="coopmobile ethz post smartphone sunrise" + + # Checks for which architecture files should be downloaded. + _filearch=i386 + [ "${CARCH}" == "x86_64" ] && _filearch=amd64 + + # Downloads and installs the packages. + _packages="smssender-gui $(echo $_gateways | sed "s/\b\(\w\)/smssender-gateway-\1/g")" + for _package in $_packages; do + _file="${_package}_${pkgver}-${_ubuntuver}_${_filearch}.deb" + wget "${_url_prefix}/$_file" + + ar x $_file + tar xJf data.tar.xz -C "$pkgdir" + done + + # Removes unused files & directories. + rm -Rf $pkgdir/usr/share/menu + rm -f $pkgdir/usr/share/doc/*/changelog.Debian.gz +} |