summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df8fff3e663dc9450549955504014d7976039311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Denis Vadimov <me@bloody.pw>

pkgname=phonesim
pkgdesc="Phone Simulator for modem testing"
pkgver=1.21.r16.gadf231a
pkgrel=1
arch=('i686' 'x86_64')
url="https://git.kernel.org/pub/scm/network/ofono/phonesim.git/"
license=('GPL2')
depends=('qt5-declarative' 'libpng' 'freetype2' 'libsm' 'libice' 'libxrender' 'fontconfig' 'libxext' 'libx11' 'harfbuzz' 'libxcb' 'graphite' 'libxau' 'libxdmcp')
makedepends=('git' 'gcc')
source=('phonesim::git+https://git.kernel.org/pub/scm/network/ofono/phonesim.git')
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/phonesim"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
    cd "$srcdir/phonesim"
    echo "--- Starting PKGBUILD logs ---"
    git checkout $(git describe) # --abbrev=0 --tags)
    echo "[BUILD] Checking-out master->$(git describe --abbrev=0 --tags)"
    ./bootstrap-configure
    make
}

package() {
    cd "$srcdir/phonesim"
    make DESTDIR="$pkgdir" install
    echo "--- Finishing PKGBUILD logs ---"
}