I have the GIMP source code, did the changes I want.
I want to build and install via pacman, because otherwise (ninja install) I can't even find how to run it lol
I cd into GIMP source code folder, then make PKGBUILD by copying PKGBUILD.proto, and renaming it to PKGBUILD, and editing it to:
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <[email protected]>
pkgname=GIMPCUSTOM
pkgver=1.0
pkgrel=1
epoch=
pkgdesc="Does not have random gimpressions"
arch=(x86_64 i686)
url=~/gimp
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=(gimp)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver.tar.gz"
"$pkgname-$pkgver.patch")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}
build() {
#cd "~/gimp"
#make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
cd "$pkgname-$pkgver"
./configure --prefix=/usr
make
}
check() {
cd "$pkgname-$pkgver"
make -k check
}
package() {
#cd "~/gimp"
#mkdir -p ${pkgdir}/opt/${pkgname}
#cp -rf * ${pkdir}/opt/${pkgname}
#make PREFIX=/usr DESTDIR="${pkgdir}" install
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
I then write makepkg -si
and get the following error, even if I run the above with comments instead of default
===>Retrieving Sources...
===> ERROR: GIMPCUSTOM-1.0.tar.gz was not found in the build directory and is not a URL.
The location of the GIMP source code is: ~/gimp
I don't find any .tar.gz file in ~/gimp
And I run makepkg -si
on the above location
I want this build to run locally, I won't upload it anywhere (e.g. AUR), I would accept even a hacky solution if it works as intended
Any help is appreciated