summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
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"
+}