🔒 Repository is read-only – file editing is disabled.

recipes/gui/fltk/PAGBUILD.yaml main

50 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
pkgname: fltk
pkgver: '1.4.5'
pkgrel: '1'
pkgdesc: 'Graphical user interface toolkit for X'
url: 'https://www.fltk.org/'
arch: x86_64
license:
- custom

depends: []
makedepends:
- 'libjpeg-turbo'
- libpng
- 'xorg-libxft'
- 'xorg-libxi'
- 'xorg-libxinerama'
- mesa
- doxygen

source:
- 'https://github.com/fltk/fltk/releases/download/release-${pkgver}/fltk-${pkgver}-source.tar.gz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  sed -i -e '/cat./d' documentation/Makefile

  ./configure --prefix=/usr \
  --enable-threads \
  --enable-shared \
  --enable-xft
  make
  make -C documentation html

  make DESTDIR=${PKGDIR} docdir=/usr/share/doc/fltk install

  make -C test DESTDIR=${PKGDIR} docdir=/usr/share/doc/fltk install-linux
  make -C documentation DESTDIR=${PKGDIR} docdir=/usr/share/doc/fltk install-linux

  install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING

  # Remove games
  rm ${PKGDIR}/usr/bin/{blocks,checkers,sudoku}
  rm -r ${PKGDIR}/usr/share/{applications,icons}

package: |
  true