diff options
| author | kj_sh604 | 2025-12-20 23:59:56 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-12-20 23:59:56 -0500 |
| commit | 285fc5db86b5d75f65e640160b860e20cc827596 (patch) | |
| tree | 00cbb9d4dab776a3d04b17f6c72c052e4ce0a876 /archlinux | |
| parent | 1aecac2447b2061a09ef75c71eab1b777d36c93f (diff) | |
feat: initial attempt at PKGBUILD
Diffstat (limited to 'archlinux')
| -rw-r--r-- | archlinux/.SRCINFO | 18 | ||||
| -rw-r--r-- | archlinux/.gitignore | 4 | ||||
| -rw-r--r-- | archlinux/PKGBUILD | 42 | ||||
| -rw-r--r-- | archlinux/README.md | 48 | ||||
| -rw-r--r-- | archlinux/kjagave.desktop | 12 | ||||
| -rw-r--r-- | archlinux/kjagave.png | bin | 0 -> 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 @@ | |||
| 1 | pkgbase = 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 | |||
| 18 | pkgname = 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 @@ | |||
| 1 | pkg/ | ||
| 2 | src/ | ||
| 3 | *.tar* | ||
| 4 | kjagave/ \ 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 @@ | |||
| 1 | pkgname=kjagave-git | ||
| 2 | pkgver=r4.1aecac2 | ||
| 3 | pkgrel=1 | ||
| 4 | pkgdesc="a color picker inspired by agave, but only with the features that kj_sh604 used" | ||
| 5 | arch=('x86_64') | ||
| 6 | url="https://github.com/kj-sh604/kjagave" | ||
| 7 | license=('GPL2') | ||
| 8 | depends=('gtk3') | ||
| 9 | optdepends=('xcolor: for screen color picking' | ||
| 10 | 'grabc: alternative for screen color picking') | ||
| 11 | makedepends=('go' 'git') | ||
| 12 | provides=('kjagave') | ||
| 13 | conflicts=('kjagave') | ||
| 14 | source=("git+https://github.com/kj-sh604/kjagave.git") | ||
| 15 | sha256sums=('SKIP') | ||
| 16 | |||
| 17 | pkgver() { | ||
| 18 | cd "${srcdir}/kjagave" | ||
| 19 | printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
| 20 | } | ||
| 21 | |||
| 22 | build() { | ||
| 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 | |||
| 34 | package() { | ||
| 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 | |||
| 3 | This directory contains the PKGBUILD and related files for building and installing kjagave on Arch Linux. | ||
| 4 | |||
| 5 | ## Building the Package | ||
| 6 | |||
| 7 | ```bash | ||
| 8 | cd archlinux | ||
| 9 | makepkg -si | ||
| 10 | ``` | ||
| 11 | |||
| 12 | ## Installing from AUR (future) | ||
| 13 | |||
| 14 | Once uploaded to the AUR: | ||
| 15 | |||
| 16 | ```bash | ||
| 17 | yay -S kjagave | ||
| 18 | # or | ||
| 19 | paru -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 | |||
| 31 | If 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 | |||
| 38 | makepkg -si | ||
| 39 | ``` | ||
| 40 | |||
| 41 | ## Note | ||
| 42 | |||
| 43 | The PKGBUILD expects a tagged release (v1.0) on GitHub. Make sure to create and push the tag before building: | ||
| 44 | |||
| 45 | ```bash | ||
| 46 | git tag v1.0 | ||
| 47 | git 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] | ||
| 2 | Version=1.0 | ||
| 3 | Type=Application | ||
| 4 | Name=kjagave | ||
| 5 | GenericName=Color Picker | ||
| 6 | Comment=Pick and save colors with screen grabbing support | ||
| 7 | Exec=kjagave | ||
| 8 | Icon=kjagave | ||
| 9 | Terminal=false | ||
| 10 | Categories=Graphics;Utility;GTK; | ||
| 11 | Keywords=color;picker;palette;screen;grab; | ||
| 12 | StartupNotify=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 | |||
