Rework for successful build on FreeBSD

This commit is contained in:
NotAlexNoyle committed 2022-05-12 00:12:41 -04:00
1 parent 9c9ac86520
commit 9e42799b2f
2 files changed
+17 -10

No files matched your search

+10 -8
View File
@@ -1,10 +1,11 @@
[![Build Status](https://travis-ci.com/RonnyDo/ColorPicker.svg?branch=master)](https://travis-ci.com/RonnyDo/ColorPicker)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
# Color Picker
One Color Picker to rule them all! No overhelming menus or settings. An easy tool with the features you need.
This fork has been verified to build on FreeBSD 13.1.
Features:
* Pick a color with the zoomable Magnifier
* Choose between multiple Color Formats
@@ -22,7 +23,7 @@ On elementaryOS? Simply install Color Picker from AppCenter:
For other Debian-based systems, you can download and install the [latest .deb file](https://github.com/ronnydo/colorpicker/releases/latest).
For other systems, you will need to compile the package yourself. See the instructions below.
For FreeBSD (and other systems), you will need to compile the package yourself. See the instructions below.
## Build from source
If you like to build ColorPicker yourself, take a look at the [`dev-build.sh`](dev-build.sh) file.
@@ -30,18 +31,19 @@ If you like to build ColorPicker yourself, take a look at the [`dev-build.sh`](d
### Dependencies
You'll need the following dependencies to compile ColorPicker:
* granite
* libgtk-3-dev
* meson
* valac
* vala
* ninja
### Example
Here's a sample list of commands for building the package from source. These have been tested to work correctly on Ubuntu 18.04.
Here's a sample list of commands for building the package from source. These have been tested to work correctly on FreeBSD 13.1.
```sh
sudo apt install valac libgranite-dev
git clone https://github.com/RonnyDo/ColorPicker.git
```bash
sudo pkg install vala granite meson ninja
git clone https://github.com/NotAlexNoyle/ColorPicker
cd ColorPicker/
chmod +x dev-build.sh
./dev-build.sh
Enter your sudo password when prompted.
```
+7 -2
View File
@@ -1,11 +1,16 @@
#!/usr/local/bin/bash
sudo rm -r build
meson build
cd build
meson configure -Dprefix=/usr
ninja
sudo cp ../data/com.github.ronnydo.colorpicker.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
sudo cp ../data/com.github.ronnydo.colorpicker.gschema.xml /usr/local/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas/
G_MESSAGES_DEBUG=all ./com.github.ronnydo.colorpicker
echo "Enter your sudo password to elevate privilages for the installation..."
sudo meson install
cd ..