summaryrefslogtreecommitdiff
path: root/archlinux
diff options
context:
space:
mode:
authorkj_sh6042025-12-20 23:59:56 -0500
committerkj_sh6042025-12-20 23:59:56 -0500
commit285fc5db86b5d75f65e640160b860e20cc827596 (patch)
tree00cbb9d4dab776a3d04b17f6c72c052e4ce0a876 /archlinux
parent1aecac2447b2061a09ef75c71eab1b777d36c93f (diff)
feat: initial attempt at PKGBUILD
Diffstat (limited to 'archlinux')
-rw-r--r--archlinux/.SRCINFO18
-rw-r--r--archlinux/.gitignore4
-rw-r--r--archlinux/PKGBUILD42
-rw-r--r--archlinux/README.md48
-rw-r--r--archlinux/kjagave.desktop12
-rw-r--r--archlinux/kjagave.pngbin0 -> 4934 bytes
6 files changed, 124 insertions, 0 deletions
diff --git a/archlinux/.SRCINFO b/archlinux/.SRCINFO
new file mode 100644
index 0000000..946d5be
--- /dev/null
+++ b/archlinux/.SRCINFO
@@ -0,0 +1,18 @@
1pkgbase = kjagave-git
2 pkgdesc = a color picker inspired by agave, but only with the features that kj_sh604 used
3 pkgver = r4.1aecac2
4 pkgrel = 1
5 url = https://github.com/kj-sh604/kjagave
6 arch = x86_64
7 license = GPL2
8 makedepends = go
9 makedepends = git
10 depends = gtk3
11 optdepends = xcolor: for screen color picking
12 optdepends = grabc: alternative for screen color picking
13 provides = kjagave
14 conflicts = kjagave
15 source = git+https://github.com/kj-sh604/kjagave.git
16 sha256sums = SKIP
17
18pkgname = kjagave-git
diff --git a/archlinux/.gitignore b/archlinux/.gitignore
new file mode 100644
index 0000000..acab16a
--- /dev/null
+++ b/archlinux/.gitignore
@@ -0,0 +1,4 @@
1pkg/
2src/
3*.tar*
4kjagave/ \ No newline at end of file
diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD
new file mode 100644
index 0000000..bc906a6
--- /dev/null
+++ b/archlinux/PKGBUILD
@@ -0,0 +1,42 @@
1pkgname=kjagave-git
2pkgver=r4.1aecac2
3pkgrel=1
4pkgdesc="a color picker inspired by agave, but only with the features that kj_sh604 used"
5arch=('x86_64')
6url="https://github.com/kj-sh604/kjagave"
7license=('GPL2')
8depends=('gtk3')
9optdepends=('xcolor: for screen color picking'
10 'grabc: alternative for screen color picking')
11makedepends=('go' 'git')
12provides=('kjagave')
13conflicts=('kjagave')
14source=("git+https://github.com/kj-sh604/kjagave.git")
15sha256sums=('SKIP')
16
17pkgver() {
18 cd "${srcdir}/kjagave"
19 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
20}
21
22build() {
23 cd "${srcdir}/kjagave/src"
24 export CGO_CPPFLAGS="${CPPFLAGS}"
25 export CGO_CFLAGS="${CFLAGS}"
26 export CGO_CXXFLAGS="${CXXFLAGS}"
27 export CGO_LDFLAGS="${LDFLAGS}"
28 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -modcacherw"
29 go mod download
30 go mod download github.com/gotk3/gotk3
31 go build -x -o kjagave main.go
32}
33
34package() {
35 install -Dm755 "${srcdir}/kjagave/src/kjagave" "${pkgdir}/usr/bin/kjagave"
36 install -Dm644 "kjagave.desktop" "${pkgdir}/usr/share/applications/kjagave.desktop"
37 install -Dm644 "kjagave.png" "${pkgdir}/usr/share/pixmaps/kjagave.png"
38 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/kjagave/LICENSE"
39 install -Dm644 README.md "${pkgdir}/usr/share/doc/kjagave/README.md"
40}
41
42# vim:set ts=2 sw=2 et:
diff --git a/archlinux/README.md b/archlinux/README.md
new file mode 100644
index 0000000..668155f
--- /dev/null
+++ b/archlinux/README.md
@@ -0,0 +1,48 @@
1# Arch Linux Package
2
3This directory contains the PKGBUILD and related files for building and installing kjagave on Arch Linux.
4
5## Building the Package
6
7```bash
8cd archlinux
9makepkg -si
10```
11
12## Installing from AUR (future)
13
14Once uploaded to the AUR:
15
16```bash
17yay -S kjagave
18# or
19paru -S kjagave
20```
21
22## Files
23
24- `PKGBUILD` - Build script for Arch Linux
25- `kjagave.desktop` - XDG desktop entry
26- `kjagave.png` - Application icon
27- `.SRCINFO` - Package metadata (generated with `makepkg --printsrcinfo`)
28
29## Building from Local Repository
30
31If you're testing locally before tagging a release:
32
33```bash
34# In the archlinux directory, edit PKGBUILD to use local source
35# Replace the source line with:
36# source=("${pkgname}::git+file://$(pwd)/..")
37
38makepkg -si
39```
40
41## Note
42
43The PKGBUILD expects a tagged release (v1.0) on GitHub. Make sure to create and push the tag before building:
44
45```bash
46git tag v1.0
47git push origin v1.0
48```
diff --git a/archlinux/kjagave.desktop b/archlinux/kjagave.desktop
new file mode 100644
index 0000000..d5635d4
--- /dev/null
+++ b/archlinux/kjagave.desktop
@@ -0,0 +1,12 @@
1[Desktop Entry]
2Version=1.0
3Type=Application
4Name=kjagave
5GenericName=Color Picker
6Comment=Pick and save colors with screen grabbing support
7Exec=kjagave
8Icon=kjagave
9Terminal=false
10Categories=Graphics;Utility;GTK;
11Keywords=color;picker;palette;screen;grab;
12StartupNotify=true
diff --git a/archlinux/kjagave.png b/archlinux/kjagave.png
new file mode 100644
index 0000000..6f9763b
--- /dev/null
+++ b/archlinux/kjagave.png
Binary files differ