diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | Makefile | 56 | ||||
-rw-r--r-- | PKGBUILD | 7 |
4 files changed, 68 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = gcsvedit pkgdesc = Simple text editor for CSV, TSV and other kinds of delimiter-separated values (DSV) files. pkgver = 0.8.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/swilmet/gCSVedit arch = i686 arch = x86_64 @@ -9,10 +9,9 @@ pkgbase = gcsvedit depends = gtk3 depends = libxml2 depends = gtksourceview3 - depends = tepl + depends = libtepl-4.so depends = gtksourceview4 source = https://github.com/swilmet/gCSVedit/releases/download/0.8.0/gcsvedit-0.8.0.tar.xz - md5sums = bfc5d9815527b67481a4b2587ba5745d + sha256sums = 5d1f49d1e21b2b682cab83296a16f345cbb8fcc5f6c803b4e16a254b59ebb9aa pkgname = gcsvedit - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..5a0ff9f14c7a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ + +gcsvedit-*.tar* +gcsvedit4-*.tar* diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..08dc72d466bd --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +.SHELL = /usr/bin/env bash + +NAME = "$(shell grep -m 1 pkgname .SRCINFO | cut -d '=' -f 2 | xargs)" +URL = "$(shell grep url .SRCINFO | cut -d '=' -f 2 | xargs)" +VERSION = "$(shell grep pkgver .SRCINFO | cut -d '=' -f 2 | xargs)" + +.PHONY: all +all: build git install + +.PHONY: clean +clean: + rm -r src pkg || true + +.PHONY: geninteg +geninteg: + sed -i '/.*sums=(/,$$d' PKGBUILD + makepkg --geninteg >> PKGBUILD + +.PHONY: srcinfo +srcinfo: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: makepkg +makepkg: + makepkg --syncdeps --force + +.PHONY: build +build: geninteg srcinfo makepkg + +.PHONY: git +git: git_add git_commit + +.PHONY: git_add +git_add: + git add PKGBUILD .SRCINFO Makefile + +.PHONY: git_commit +git_commit: GIT_STATUS = "$(shell git status --porcelain)" +git_commit: + [ -n ${GIT_STATUS} ] && git commit -m "Update to ${VERSION}" + +.PHONY: install +install: + makepkg --repackage --install --force + +.PHONY: open +open: + xdg-open $(URL) + +.PHONY: run +run: + env $(NAME) + +.PHONY: test +test: + env $(NAME) --version @@ -2,14 +2,13 @@ # Contributor: Frank Seifferth <frankseifferth@posteo.net> pkgname=gcsvedit pkgver=0.8.0 -pkgrel=1 +pkgrel=2 pkgdesc='Simple text editor for CSV, TSV and other kinds of delimiter-separated values (DSV) files.' arch=('i686' 'x86_64') url="https://github.com/swilmet/gCSVedit" license=('GPL3') -depends=('gtk3' 'libxml2' 'gtksourceview3' 'tepl' 'gtksourceview4') +depends=('gtk3' 'libxml2' 'gtksourceview3' 'libtepl-4.so' 'gtksourceview4') source=("https://github.com/swilmet/gCSVedit/releases/download/$pkgver/gcsvedit-$pkgver.tar.xz") -md5sums=('bfc5d9815527b67481a4b2587ba5745d') build() { cd $pkgname-$pkgver @@ -21,3 +20,5 @@ package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install } + +sha256sums=('5d1f49d1e21b2b682cab83296a16f345cbb8fcc5f6c803b4e16a254b59ebb9aa') |