summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD39
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5fbb8ae748
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = zterm-git
+ pkgdesc = A simple terminal emulator using Vte and Gtk+ writting using the Zig programming language
+ pkgver = r55.f5dc34d
+ pkgrel = 1
+ url = https://gitlab.com/jeang3nie/zterm
+ arch = x86_64
+ makedepends = git
+ makedepends = gyro
+ makedepends = zig
+ depends = gtk3
+ depends = libvte-2.91.so
+ provides = zterm
+ conflicts = zterm
+ source = git+https://gitlab.com/jeang3nie/zterm.git
+ sha256sums = SKIP
+
+pkgname = zterm-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..11762378c06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*
+!.gitignore
+!PKGBUILD
+!*.patch
+!*.install
+!*.sysusers
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..548e432a83c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_pkgname=zterm
+
+pkgname="${_pkgname}-git"
+pkgver=r55.f5dc34d
+pkgrel=1
+pkgdesc="A simple terminal emulator using Vte and Gtk+ writting using the Zig programming language"
+url="https://gitlab.com/jeang3nie/zterm"
+depends=('gtk3' 'libvte-2.91.so')
+makedepends=('git' 'gyro' 'zig')
+arch=('x86_64')
+provides=('zterm')
+conflicts=('zterm')
+source=("git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ git submodule init && git submodule update
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ gyro build -Drelease-safe=true
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ install -D -m755 zig-out/bin/zterm "${pkgdir}/usr/bin/zterm"
+ install -D -m644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
+ install -D -m644 data/zterm.desktop "${pkgdir}/usr/share/applications/zterm.desktop"
+ install -D -m644 data/zterm.svg "${pkgdir}/usr/share/pixmaps/zterm.svg"
+}