source: SMSSender/deploy/arch/PKGBUILD @ 425:0aa3d4049edc

Last change on this file since 425:0aa3d4049edc was 425:0aa3d4049edc, checked in by Sämy Zehnder <saemy.zehnder@…>, 6 years ago
  • Adds deployment files for arch linux.
File size: 1.2 KB
Line 
1#Maintainer: Sämy Zehnder <saemy@gorrion.ch>
2
3pkgname='smssender-gui'
4pkgver=3.2
5pkgrel=1
6pkgdesc="Fast and easy-to-use client for sending sms over internet gateways"
7arch=('i686' 'x86_64')
8url="http://smssender.gorrion.ch"
9license=('GPL')
10depends=('crypto++' 'qjson' 'qrencode' 'qt4')
11provides=('smssender-gui')
12conflicts=('smssender-gui')
13
14package() {
15    # Downloads the package files from the ubuntu repository.
16
17    # Some settings.
18    _ubuntuver="trusty"
19    _url_prefix="https://launchpad.net/~saemy-zehnder/+archive/ppa/+files"
20    _gateways="ethz post schoolnet smartphone sunrise"
21
22    # Checks for which architecture files should be downloaded.
23    _filearch=i386
24    [ "${CARCH}" == "x86_64" ] && _filearch=amd64
25
26    # Downloads and installs the packages.
27    _packages="smssender-gui $(echo $_gateways | sed "s/\b\(\w\)/smssender-gateway-\1/g")"
28    for _package in $_packages; do
29        _file="${_package}_${pkgver}-0ubuntu1_${_filearch}.deb"
30        wget "${_url_prefix}/$_file"
31
32        ar x $_file
33        tar xJf data.tar.xz -C "$pkgdir"
34    done
35
36    # Removes unused files & directories.
37    rm -Rf $pkgdir/usr/share/menu
38    rm -f $pkgdir/usr/share/doc/*/changelog.Debian.gz
39}
Note: See TracBrowser for help on using the repository browser.