smlinux/extra/gpaint/gpaint.SMBuild

37 lines
822 B
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gpaint
version=0.3.2
build=2sml
homepage="https://www.gnu.org/software/gpaint/"
download="ftp://alpha.gnu.org/gnu/gpaint/gpaint-2-$version.tar.gz"
desc="Simple and lightweight alternative to MS-paint written in GTK2"
requires="gtk2 "
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
sed -i 's/GTK_RESPONSE_DISCARD/GTK_RESPONSE_NO/' src/drawing.c
}
build() {
./configure \
--prefix=""
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mv $pkg/bin/gpaint-2 $pkg/bin/gpaint
mkfinalpkg
}
sha512sums="
6e8de4793e6e74676efbf190b117af0de1af8320c60ae160092c9d0fb7977215979abf607ffb172b2cb99eb50dece481d008bb42c0062d65023915290c26c397 gpaint-0.3.2.tar.lz
"