[Replicant] [libsamsung-ipc] [PATCH 6/6] Add PKGBUILD
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Tue Jan 25 16:51:48 UTC 2022
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 at cyberdimension.org>
---
scripts/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 scripts/PKGBUILD
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 at 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
+}
--
2.34.1
More information about the Replicant
mailing list