summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaizhao Zhang2021-07-28 21:13:29 +0800
committerKaizhao Zhang2021-07-28 21:13:29 +0800
commit7418075bc0e134d884aa1dde18834bbdbf17399c (patch)
tree681614e5ecc0d999d0358b61c53c3ac0eb779446
downloadaur-7418075bc0e134d884aa1dde18834bbdbf17399c.tar.gz
Initial import with version 0.0.1
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD40
-rw-r--r--clap-branch-zig-master.patch11
4 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ed125c2a356
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = zterm
+ pkgdesc = A simple terminal emulator using Vte and Gtk+ writting using the Zig programming language
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = https://gitlab.com/jeang3nie/zterm
+ arch = x86_64
+ makedepends = git
+ makedepends = gyro
+ makedepends = zig
+ depends = libgtk-3.so
+ depends = libvte-2.91.so
+ provides = zterm
+ conflicts = zterm
+ source = https://gitlab.com/jeang3nie/zterm/-/archive/v0.0.1/zterm-v0.0.1.tar.bz2
+ source = clap-branch-zig-master.patch
+ sha256sums = 4cd490e032905bea6424b09477259e0beb6fb2908b9cb7b088c2a3c996db3bc1
+ sha256sums = 23a30b33e6406f8922c15cfaa60ecaedca85b951167528a09ac25e52e215df8b
+
+pkgname = zterm
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..9df509c94ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_pkgname=zterm
+
+pkgname="${_pkgname}"
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="A simple terminal emulator using Vte and Gtk+ writting using the Zig programming language"
+url="https://gitlab.com/jeang3nie/zterm"
+depends=('libgtk-3.so' 'libvte-2.91.so')
+makedepends=('git' 'gyro' 'zig')
+arch=('x86_64')
+provides=('zterm')
+conflicts=('zterm')
+source=(
+ "${url}/-/archive/v${pkgver}/${_pkgname}-v${pkgver}.tar.bz2"
+ 'clap-branch-zig-master.patch'
+)
+sha256sums=(
+ '4cd490e032905bea6424b09477259e0beb6fb2908b9cb7b088c2a3c996db3bc1'
+ '23a30b33e6406f8922c15cfaa60ecaedca85b951167528a09ac25e52e215df8b'
+)
+
+prepare() {
+ cd "${srcdir}/${_pkgname}-v${pkgver}"
+ patch -p0 -i ../clap-branch-zig-master.patch
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-v${pkgver}"
+ gyro build -Drelease-safe=true
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-v${pkgver}"
+ 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"
+}
diff --git a/clap-branch-zig-master.patch b/clap-branch-zig-master.patch
new file mode 100644
index 00000000000..09c95a6d956
--- /dev/null
+++ b/clap-branch-zig-master.patch
@@ -0,0 +1,11 @@
+--- gyro.zzz.orig 2021-07-28 21:04:24.177815138 +0800
++++ gyro.zzz 2021-07-28 21:04:33.301402947 +0800
+@@ -11,7 +11,7 @@
+ github:
+ user: Hejsil
+ repo: zig-clap
+- ref: master
++ ref: zig-master
+ root: clap.zig
+ nestedtext:
+ src: