imported fltk from core

[skip-ci]
This commit is contained in:
AlmAck 2019-01-20 11:07:56 +01:00
parent 7a7f95dfdc
commit ff1917e38b

View File

@ -1,8 +1,6 @@
pkgname=fltk pkgname=fltk
pkgver=1.3.4 pkgver=1.3.4
_pkgver=2 pkgrel=3
pkgrel=2
pkgdesc="Graphical user interface toolkit for X." pkgdesc="Graphical user interface toolkit for X."
arch=('x86_64') arch=('x86_64')
screenshot="http://www.fltk.org/images/fltk-widgets-std.png" screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
@ -13,21 +11,15 @@ depends=('libjpeg-turbo' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
makedepends=('mesa' 'doxygen' 'alsa-lib') makedepends=('mesa' 'doxygen' 'alsa-lib')
options=('!docs') options=('!docs')
categories=('system') categories=('system')
source=("http://fltk.org/pub/${pkgname}/${pkgver}/${pkgname}-${pkgver}-${_pkgver}-source.tar.gz") source=("http://fltk.org/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.gz")
md5sums=('b8e291343357e49dd81a22408744e400') md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')
prepare() {
cd ${pkgname}-${pkgver}-${_pkgver}
sed -e 's/x-fluid.desktop/fluid.desktop/' \
-i fluid/Makefile
}
build() { build() {
cd ${pkgname}-${pkgver}-${_pkgver} cd $pkgname-$pkgver
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \ sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
sed -i 's/x-fluid.desktop/fluid.desktop/' -i fluid/Makefile
./configure --prefix=/usr \ ./configure --prefix=/usr \
--enable-shared \ --enable-shared \
@ -40,10 +32,11 @@ build() {
} }
package() { package() {
cd ${pkgname}-${pkgver}-${_pkgver} cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install make DESTDIR=$pkgdir install
make DESTDIR="$pkgdir" -C fluid install install-linux ( cd fluid && make DESTDIR=$pkgdir install install-linux )
chmod 644 "${pkgdir}/usr/lib"/*.a chmod 644 ${pkgdir}/usr/lib/*.a
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
} }