mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:37:15 +08:00
Importing fltk from CCR.
This commit is contained in:
parent
3ca870e621
commit
f9e1aa91b0
46
fltk/PKGBUILD
Normal file
46
fltk/PKGBUILD
Normal file
@ -0,0 +1,46 @@
|
||||
# Contributor: kote
|
||||
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
|
||||
|
||||
pkgname=fltk
|
||||
pkgver=1.3.0
|
||||
pkgrel=1
|
||||
pkgdesc="Graphical user interface toolkit for X."
|
||||
arch=('i686' 'x86_64')
|
||||
screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
|
||||
license=('custom:LGPL')
|
||||
url="http://www.fltk.org/"
|
||||
depends=('libjpeg' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
|
||||
'desktop-file-utils' 'xdg-utils' 'libgl')
|
||||
makedepends=('mesa' 'doxygen' 'libjpeg' 'libpng' 'libxft' 'libxinerama'
|
||||
'alsa-lib' 'desktop-file-utils')
|
||||
options=('!docs')
|
||||
install="fltk.install"
|
||||
source=("http://ftp.easysw.com/pub/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz")
|
||||
md5sums=('44d5d7ba06afdd36ea17da6b4b703ca3')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
|
||||
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-threads \
|
||||
--enable-xft \
|
||||
--enable-gl
|
||||
|
||||
make
|
||||
cd documentation && make html
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
( cd fluid && make DESTDIR="${pkgdir}" install install-linux )
|
||||
|
||||
chmod 644 "${pkgdir}/usr/lib"/*.a
|
||||
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
12
fltk/fltk.install
Normal file
12
fltk/fltk.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user