summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-26 16:39:37 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-26 16:57:07 +0200
commit345538fde4197a3a4dd9ba4270bb9eca7153543a (patch)
treefe12c1e4d95e391744bae464e38e1cf8a4c0b4c4 /pcr
parenta4594f69545883bb62224f8e9c05aa515a33e528 (diff)
downloadabslibre-345538fde4197a3a4dd9ba4270bb9eca7153543a.tar.gz
abslibre-345538fde4197a3a4dd9ba4270bb9eca7153543a.tar.bz2
abslibre-345538fde4197a3a4dd9ba4270bb9eca7153543a.zip
pcr: Add osmocom's simtrace (first generation)
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr')
-rw-r--r--pcr/simtrace/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/simtrace/PKGBUILD b/pcr/simtrace/PKGBUILD
new file mode 100644
index 000000000..ce6bdb1bd
--- /dev/null
+++ b/pcr/simtrace/PKGBUILD
@@ -0,0 +1,29 @@
+# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+pkgname=simtrace-git
+_pkgname=simtrace
+pkgver=0.1.r89.g6fde8e1
+_commit=6fde8e1c26f12069e67103ba5f69a068d78de063
+pkgrel=1
+pkgdesc="Traces the communication between phones and SIM cards with first generation simtrace hardware."
+arch=('armv7h' 'i686' 'x86_64')
+url="http://bb.osmocom.org/trac/wiki/SIMtrace"
+license=('GPL2') # GPLv2-only according to the source files headers
+depends=('libosmocore' 'libusb')
+makedepends=('make' 'gcc' 'git' 'pkg-config')
+source=("git://git.osmocom.org/simtrace.git#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname/host"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname/host"
+ make DESTDIR=$pkgdir install
+}