diff options
author | acd407 | 2024-02-02 23:14:20 +0800 |
---|---|---|
committer | acd407 | 2024-02-02 23:14:20 +0800 |
commit | b3debba1ce2a4c35d9fae8a21edf944a30408ae7 (patch) | |
tree | 42b01b31b00c7394e14c82675032e0db3537b095 | |
download | aur-sakura-acd407.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | sakura.c.patch | 32 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f00e5166ef28 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = sakura-acd407 + pkgdesc = A terminal emulator (with acd407 color patch) + pkgver = r945.d00621c + pkgrel = 1 + url = https://launchpad.net/sakura + arch = x86_64 + license = GPL + makedepends = git + makedepends = cmake + depends = vte3 + depends = libxft + conflicts = sakura + source = sakura-acd407::git+https://github.com/dabisu/sakura.git + source = sakura.c.patch + sha512sums = SKIP + sha512sums = SKIP + +pkgname = sakura-acd407 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7c5f292ef6c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: acd407 <acd407@qq.com> + +pkgname=sakura-acd407 +_pkgname=sakura +pkgver=r945.d00621c +pkgrel=1 +pkgdesc='A terminal emulator (with acd407 color patch)' +arch=('x86_64') +url='https://launchpad.net/sakura' +license=('GPL') +depends=('vte3' 'libxft') +makedepends=('git' 'cmake') +conflicts=('sakura') +source=("${pkgname}"::'git+https://github.com/dabisu/sakura.git' + "sakura.c.patch") +sha512sums=('SKIP' + 'SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd ${srcdir}/${pkgname} + patch "src/sakura.c" < ../sakura.c.patch + mkdir build && cd build + cmake .. \ + -G 'Unix Makefiles' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make +} + +package() { + cd "${srcdir}/${pkgname}/build" + make DESTDIR=${pkgdir} install +} diff --git a/sakura.c.patch b/sakura.c.patch new file mode 100644 index 000000000000..1572594e4c04 --- /dev/null +++ b/sakura.c.patch @@ -0,0 +1,32 @@ +--- src/sakura.c 2024-02-02 21:36:13.718802928 +0800 ++++ sakura.c 2024-02-02 21:40:02.514685481 +0800 +@@ -213,8 +213,27 @@ + {0.7725490196078432 , 0.7843137254901961 , 0.7764705882352941 , 1} + }; + +-const char *palettes_names[]= {"Solarized", "Tango", "Gruvbox", "Nord", "Xterm", "Linux", "Rxvt", "Hybrid", NULL}; +-const GdkRGBA *palettes[] = {solarized_palette, tango_palette, gruvbox_palette, nord_palette, xterm_palette, linux_palette, rxvt_palette, hybrid_palette, NULL}; ++const GdkRGBA low_contrast_palette[PALETTE_SIZE] = { ++ {0.1875, 0.1875, 0.1875 }, ++ {0.85546875, 0.0, 0.0 }, ++ {0.375, 0.73828125, 0.02734375 }, ++ {0.80859375, 0.66015625, 0.0 }, ++ {0.234375, 0.453125, 0.73828125 }, ++ {0.578125, 0.39453125, 0.609375 }, ++ {0.0234375, 0.59375, 0.6015625 }, ++ {0.82421875, 0.83984375, 0.80859375 }, ++ {0.2890625, 0.28125, 0.2578125 }, ++ {0.93359375, 0.16015625, 0.16015625 }, ++ {0.5390625, 0.8828125, 0.203125 }, ++ {0.984375, 0.91015625, 0.30859375 }, ++ {0.4453125, 0.62109375, 0.80859375 }, ++ {0.67578125, 0.49609375, 0.65625 }, ++ {0.203125, 0.8828125, 0.8828125 }, ++ {0.9296875, 0.9296875, 0.921875 }, ++}; ++ ++const char *palettes_names[]= {"Solarized", "Tango", "Gruvbox", "Nord", "Xterm", "Linux", "Rxvt", "Hybrid", "LowContrast", NULL}; ++const GdkRGBA *palettes[] = {solarized_palette, tango_palette, gruvbox_palette, nord_palette, xterm_palette, linux_palette, rxvt_palette, hybrid_palette, low_contrast_palette, NULL}; + #define DEFAULT_PALETTE 1 /* Tango palette */ + + /* Color schemes (fg&bg) for sakura. Each colorset can use a different scheme */ |