summaryrefslogtreecommitdiff
path: root/templates/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gdb')
-rw-r--r--templates/gdb/template30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/gdb/template b/templates/gdb/template
new file mode 100644
index 0000000..7026c35
--- /dev/null
+++ b/templates/gdb/template
@@ -0,0 +1,30 @@
+pkgname=gdb
+version=17.2
+build_no=1
+upstream="https://ftp.gnu.org/gnu/gdb/gdb-${version}.tar.gz"
+
+function do_configure {
+ mkdir -p build/
+ cd build/
+
+ conf_flags=(
+ --prefix=/usr
+ --target=${DISTRO_TC}
+ --host=${DISTRO_TC}
+ --enable-host-pie
+ --enable-host-shared
+ )
+
+ ../configure "${conf_flags[@]}"
+}
+
+function do_build {
+ cd build/
+ make -j$(nproc)
+}
+
+function do_install {
+ echo "Test"
+# cd build/
+# make DESTDIR=${DESTDIR} install
+}