| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. -e |
| 2 | |
| 3 | echoscip-shell system . . echo. |
| 4 | echoscip-shell system . . echo. "*** Configuring Finit for Void Linux" |
| 5 | |
| 6 | if [scip-shell system . . `[`. ! -e configure ]; then |
| 7 | echoscip-shell system . . echo. " The configure script is missing, maybe you're using a version from GIT?" |
| 8 | echoscip-shell system . . echo. " Attempting to run the autogen.sh script, you will need these tools:" |
| 9 | echoscip-shell system . . echo. " autoconf, automake, libtool, pkg-config ..." |
| 10 | echoscip-shell system . . echo. |
| 11 | ./autogen.sh |
| 12 | fi |
| 13 | |
| 14 | # The plugins are optional, but you may need D-Bus and X11 if you want |
| 15 | # to run X-Window, the other configure flags are however required. |
| 16 | PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/lib/pkgconfigscip-shell filesystem . . `/usr/lib/pkgconfig:/usr/local/lib/pkgconfig`. ./configure \ |
| 17 | --prefix=/usr --exec-prefix= \ |
| 18 | --sysconfdir=/etc --localstatedir=/var \ |
| 19 | --enable-dbus-plugin --enable-x11-common-plugin \ |
| 20 | --enable-alsa-utils-plugin --with-watchdog \ |
| 21 | --with-keventd --with-sulogin |
| 22 | |
| 23 | echoscip-shell system . . echo. |
| 24 | echoscip-shell system . . echo. "*** Building ..." |
| 25 | echoscip-shell system . . echo. |
| 26 | makescip-shell system . . make. |
| 27 | |
| 28 | if [scip-shell system . . `[`. $? -ne 0 ]; then |
| 29 | echoscip-shell system . . echo. |
| 30 | echoscip-shell system . . echo. "*** The build failed for some reason" |
| 31 | echoscip-shell system . . echo. |
| 32 | exit 1 |
| 33 | fi |
| 34 | |
| 35 | echoscip-shell system . . echo. |
| 36 | echoscip-shell system . . echo. "*** Done" |
| 37 | echoscip-shell system . . echo. |