diff --git a/Makefile b/Makefile deleted file mode 100644 index 36ac6e3..0000000 --- a/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -NAME := $(shell basename $(shell pwd)) -VERSION ?= 0.0.0 - -all: test - -clean: cleanbuild cleanpkg -cleanbuild: - rm -fr ./build -cleanpkg: - rm -fr ./pkg - -show: - echo "Building '${NAME}'" - -test: - go -v test ./... - -build: build/${NAME} -build/%: - GOOS=linux GOARCH=amd64 go build -v -ldflags="-X main.date=`date -I`" -o build/$* - -pkg: show build pkg/${NAME}.deb -pkg/%.deb: - mkdir -p ./pkg -# https://github.com/jordansissel/fpm/wiki - fpm --verbose -s dir -t deb \ - --name ${NAME} \ - --package ./pkg/${NAME}.deb \ - --force \ - --deb-compression bzip2 \ - --url "${PKG_URL}" \ - --category ${PKG_CAT} \ - --description "${PKG_DESC}" \ - --maintainer "${PKG_MAINT}" \ - --vendor "${PKG_VEND}" \ - --license "${PKG_LICNS}" \ - --version ${VERSION} \ - --architecture ${PKG_ARCH} \ - --depends apt \ - ./build/=/usr/bin/ diff --git a/deb.json b/deb.json deleted file mode 100644 index baaa6ae..0000000 --- a/deb.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "cascadia", - "maintainer": "suntong ", - "description": "Command line tool to test CSS selectors", - "changelog-cmd": "echo debian --vars='{\"name\":\"!name!\"}'", - "homepage": "http://github.com/suntong/!name!", - "files": [ - { - "from": "build/!arch!/!name!", - "to": "/usr/bin", - "base" : "build/!arch!/", - "fperm": "0755" - } - ], - "copyrights": [ - { - "files": "*", - "copyright": "2016-2017 suntong ", - "license": "MIT", - "file": "LICENSE" - } - ] -}