milis/talimatname/genel/e/extcalc/talimat

23 lines
670 B
Plaintext
Raw Normal View History

2018-01-19 05:02:08 +01:00
# Tanım: Çok işlevli bir bilimsel grafik hesap makinesi
# URL: http://extcalc-linux.sourceforge.net
# Paketçi: Cihan Alkan
# Gerekler: qt4 cmake
2018-07-20 09:44:31 +02:00
# Grup: bilim
2018-01-19 05:02:08 +01:00
isim=extcalc
surum=0.9.3
devir=1
kaynak=(http://downloads.sourceforge.net/$isim-linux/$isim-$surum-1.tar.gz)
derle() {
cd $SRC/$isim-$surum-1
CXXFLAGS="$CXXFLAGS -Wno-write-strings -Wno-unused-result"
sed -i 's|${QT_LIBRARIES}|${QT_LIBRARIES} ${OPENGL_LIBRARIES}|' CMakeLists.txt
sed -i "s|FIND_PACKAGE|FIND_PACKAGE(OpenGL REQUIRED)\nFIND_PACKAGE|" CMakeLists.txt
sed -i 's|/usr/local|/usr|' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX="/usr"
make -Wno-write-strings
make DESTDIR="$PKG" install
}