aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-01-24 21:21:22 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-01-24 23:57:18 +0100
commit104c221f4a30be0245fcf6a4f0237d8ed8f4ed23 (patch)
treef98c3653bc89c84a0c520976a9dd13e2c0044a3c /scripts
parent939cf5a8ef159b52faa171c719f7c56afae20543 (diff)
downloadhardware_replicant_libsamsung-ipc-104c221f4a30be0245fcf6a4f0237d8ed8f4ed23.tar.gz
hardware_replicant_libsamsung-ipc-104c221f4a30be0245fcf6a4f0237d8ed8f4ed23.tar.bz2
hardware_replicant_libsamsung-ipc-104c221f4a30be0245fcf6a4f0237d8ed8f4ed23.zip
Add PKGBUILD
The usage of this PKGBUILD is similar to the guix.scm file in the same directory: it can be used to test the build of the current source. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/scripts/PKGBUILD b/scripts/PKGBUILD
new file mode 100644
index 0000000..6f70c19
--- /dev/null
+++ b/scripts/PKGBUILD
@@ -0,0 +1,52 @@
+# Copyright (C) 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+pkgname=libsamsung-ipc-git
+pkgver=0.3.1.r703.7c5e96a
+pkgrel=1
+pkgdesc="samsung-ipc modem protocol implementation."
+arch=('armv7h' 'i686' 'x86_64')
+license=('GPL2')
+makedepends=('autoconf'
+ 'automake'
+ 'coreutils'
+ 'ddrescue'
+ 'gawk'
+ 'grep'
+ 'libtool'
+ 'pkg-config'
+ 'python'
+ 'python-sh'
+ 'sed')
+depends=('openssl')
+
+pkgver() {
+ _base_version="0.3.1"
+ _base_revision="5cb3e7cb99701cae738693f2d6a6797a4d2df679"
+
+ if [ -d ../../.git ] ; then
+ printf "%s.r%s.%s" \
+ "${_base_version}" \
+ "$(git -C ../../ rev-list --count HEAD)" \
+ "$(git -C ../../ rev-parse --short HEAD)"
+ else
+ date "+%Y%m%d"
+ fi
+}
+
+build() {
+ ../../autogen.sh
+ ../../configure --prefix=/usr --enable-debug
+ make
+}
+
+check() {
+ make check
+}
+
+package(){
+ make DESTDIR="$pkgdir" install
+}