license=('BSD')
pkgrel='1'
makedepends=('byacc')
-source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=169')
+source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=170')
sha256sums=('SKIP')
build() {
LINK_LIB = ../Library/$(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX)
SERVER = ./Server
SERVER_MODULE = tcpip.o
+VERSION = `cat Library/dataworks.c | grep " dataworks_version " | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?'`
COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" WINDRES="$(WINDRES)" YACC="$(YACC)" LEX="$(LEX)" LFLAGS="$(LFLAGS)" YFLAGS="$(YFLAGS)" SERVER_MODULE="$(SERVER_MODULE)"
# $Id$
-.PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Grammar archive archive-prepare archive-cleanup archive-targz archive-zip dosbox prepare-dosbox dosbox-x cleanup-dosbox
+.PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Grammar ./PKGBUILD PKGBUILD archive archive-prepare archive-cleanup archive-targz archive-zip dosbox prepare-dosbox dosbox-x cleanup-dosbox get-version
all: ./Grammar ./Library ./Client $(SERVER) ./Document
cleanup-dosbox:
rm -f op.txt dosbox.conf DW.* DWSERV.* dw.* dwserv.* dosbox.core
+get-version:
+ echo $(VERSION)
+
./PKGBUILD:
echo "# \$$Id\$$" > $@
echo >> $@
echo "pkgname='dataworks'" >> $@
- echo "pkgver='"`cat Library/dataworks.c | grep " dataworks_version " | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?'`"'" >> $@
+ echo "pkgver='"$(VERSION)"'" >> $@
echo "pkgdesc='Database System'" >> $@
echo "arch=('i686' 'x86_64')" >> $@
echo "license=('BSD')" >> $@
echo " ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
echo " ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
echo "}" >> $@
+
+PKGBUILD: ./PKGBUILD