mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 17:43:12 +08:00
imported fltk from core
[skip-ci]
This commit is contained in:
parent
7a7f95dfdc
commit
ff1917e38b
@ -1,8 +1,6 @@
|
||||
|
||||
pkgname=fltk
|
||||
pkgver=1.3.4
|
||||
_pkgver=2
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Graphical user interface toolkit for X."
|
||||
arch=('x86_64')
|
||||
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')
|
||||
options=('!docs')
|
||||
categories=('system')
|
||||
source=("http://fltk.org/pub/${pkgname}/${pkgver}/${pkgname}-${pkgver}-${_pkgver}-source.tar.gz")
|
||||
md5sums=('b8e291343357e49dd81a22408744e400')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}-${_pkgver}
|
||||
|
||||
sed -e 's/x-fluid.desktop/fluid.desktop/' \
|
||||
-i fluid/Makefile
|
||||
}
|
||||
source=("http://fltk.org/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.gz")
|
||||
md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}-${_pkgver}
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
|
||||
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
|
||||
sed -i 's/x-fluid.desktop/fluid.desktop/' -i fluid/Makefile
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
@ -40,10 +32,11 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}-${_pkgver}
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" -C fluid install install-linux
|
||||
|
||||
chmod 644 "${pkgdir}/usr/lib"/*.a
|
||||
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
cd $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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user