Building custom package

I'm trying to create a custom package, but when I do a "make -j1 V=s", I got an error:

make[3]: Entering directory '/home/edwin/vpn/custom/net/ptest1'
Makefile:31: *** missing separator.  Stop.
make[3]: Leaving directory '/home/edwin/vpn/custom/net/ptest1'

any clues?

Here's my package Makefile:

include $(TOPDIR)/rules.mk

PKG_NAME:=ptest1
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=Maintainer1 <maintainer1@example.com>
PKG_LICENSE:=MIT

include $(INCLUDE_DIR)/package.mk

define Package/ptest1
  SECTION:=net
  CATEGORY:=Network
  TITLE:=PackageTest1
  MAINTAINER:=Maintainer1 <maintainer1@example.com>
  PKGARCH:=all
endef

define Package/ptest1/description
Test package to install a shell script
endef

define Build/Compile
endef

define Package/ptest1/install
  $(INSTALL_DIR) $(1)/www/cgi-bin/
  $(CP) ./files/* $(1)
endef

$(eval $(call BuildPackage,ptest1))

Makefile expects tab character, not spaces.

define Package/ptest1
‘tab’SECTION:=net
‘tab’CATEGORY:=Network
‘tab’TITLE:=PackageTest1
‘tab’MAINTAINER:=Maintainer1 <maintainer1@example.com>
‘tab’PKGARCH:=all
endef
2 Likes

ha.. Thanks. I guess I missed that, I was using VS Code to edit it. It showed up as 2x"space" with either "tab" or "space", should have used vi instead.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.