diff options
author | Matti Niemenmaa | 2015-05-08 21:59:02 +0300 |
---|---|---|
committer | Matti Niemenmaa | 2015-07-14 15:57:07 +0300 |
commit | 2a5a4a43d4a6e3db3cbb5f3c2e7b8f7940a7681b (patch) | |
tree | 4bac585fa31a80629cd1f869f4721b8f211a3f81 | |
parent | 5d1f94f1f03d2eed9b8809fb39b0d63206841e39 (diff) | |
download | aur-2a5a4a43d4a6e3db3cbb5f3c2e7b8f7940a7681b.tar.gz |
Get rid of the double build, just do the default
Which seems to produce only a dynamic library at least in my
environment.
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -34,18 +34,16 @@ build() { # The header is already in INCLUDEPATH but the code needs adding to SOURCES. echo 'SOURCES += ../../../File_Extractor/fex/Data_Reader.cpp' >> Game_Music_Emu.pro - cp -r . ../Game_Music_Emu_dynamic + # Don't request a static lib, it prevents a dynamic one from being built. + sed -i '/^CONFIG /s/staticlib //' Game_Music_Emu.pro - qmake Game_Music_Emu.pro - make - - cd ../Game_Music_Emu_dynamic - sed -i '/^CONFIG /s/staticlib/dll/' Game_Music_Emu.pro + # Install the header file too. cat >> Game_Music_Emu.pro <<EOF headers.path = /usr/include/gme headers.files += ../../gme/gme.h INSTALLS += headers EOF + qmake Game_Music_Emu.pro make } @@ -53,6 +51,4 @@ EOF package() { cd "$srcdir/$pkgname"/prj/Game_Music_Emu make INSTALL_ROOT="$pkgdir" install - cd ../Game_Music_Emu_dynamic - make INSTALL_ROOT="$pkgdir" install } |