aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE27
-rw-r--r--Makefile4
-rw-r--r--compile_flags.txt1
-rw-r--r--config.h1
-rw-r--r--main.c4
5 files changed, 35 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..be0f729
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Arslaan Pathan License (ARPL)
+Version 1.0, March 1st 2026
+
+Copyright (c) 2026 Arslaan Pathan
+Everyone is permitted to copy and distribute verbatim copies of this document, but changing it is not allowed.
+
+You are free to:
+- Use, modify, copy, and distribute this software for any purpose, including commercially.
+
+Under the following conditions:
+1. Attribution: You must credit the original author(s) clearly in your project. For command-line tools, this can be in --version or --credits output. For commercial products, this must appear somewhere reasonably visible.
+
+2. Copyleft: If you distribute a modified version of this software, the source code must be publicly available and licensed under the ARPL v1.0. You may not relicense it.
+
+3. Modified notice: If you distribute a modified version of this software, you must clearly state that it has been modified from the original somewhere reasonably visible, for example, your README or documentation. You are not obligated to list every change.
+
+4. No endorsement: You may not claim that your project(s) are endorsed, sponsored, or approved by the original author(s) without explicit written permission.
+
+5. No additional restrictions: You may not add any further restrictions beyond what this license requires.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--
+To apply the ARPL to your projects, add a LICENSE file with this text in the root of your project, and append the following header as a comment to the top of each source file:
+
+Copyright (c) [year] [copyright holders]
+This software is licensed under the ARPL. See LICENSE for details.
diff --git a/Makefile b/Makefile
index 08599a1..ab50dfc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+# Copyright (c) 2026 Arslaan Pathan
+# This software is licensed under the ARPL. See LICENSE for details.
CC = clang
CFLAGS = -std=gnu17 `pkg-config --cflags webkit2gtk-4.1 gtk+-3.0`
LIBS = `pkg-config --libs webkit2gtk-4.1 gtk+-3.0`
@@ -6,7 +8,7 @@ SRC = main.c
all: $(TARGET)
-$(TARGET): $(SRC)
+$(TARGET): $(SRC) config.h
$(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(LIBS)
clean:
diff --git a/compile_flags.txt b/compile_flags.txt
deleted file mode 100644
index 7da7515..0000000
--- a/compile_flags.txt
+++ /dev/null
@@ -1 +0,0 @@
--I/usr/include/webkitgtk-4.1 -I/usr/include/libsoup-3.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -lwebkit2gtk-4.1 -lsoup-3.0 -ljavascriptcoregtk-4.1 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -latk-1.0 -lpango-1.0 -lcairo -lharfbuzz -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -pthread -lglib-2.0
diff --git a/config.h b/config.h
index 08f692d..13646b0 100644
--- a/config.h
+++ b/config.h
@@ -1,6 +1,7 @@
#ifndef CONFIG_H
#define CONFIG_H
+/* default window width/height, can be resized after. */
#define WINDOW_WIDTH 1024
#define WINDOW_HEIGHT 768
#define HOMEPAGE "https://start.duckduckgo.com"
diff --git a/main.c b/main.c
index 848cf23..5986341 100644
--- a/main.c
+++ b/main.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 2026 Arslaan Pathan
+This software is licensed under the ARPL. See LICENSE for details.
+*/
#include <webkit2/webkit2.h>
#include <gtk/gtk.h>
#include "config.h"