diff options
author | kusakata | 2017-12-22 01:31:15 +0900 |
---|---|---|
committer | kusakata | 2017-12-22 01:31:15 +0900 |
commit | d95f40302d43d05bb199b19c66d3b814834db9d2 (patch) | |
tree | f39dffcd92ed201d6b2a5b8803f0f2a7806d5a46 | |
download | aur-d95f40302d43d05bb199b19c66d3b814834db9d2.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | makefile.targets.patch | 13 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e782eb5126df --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Thu Dec 21 16:25:17 UTC 2017 +pkgbase = libcleri + pkgdesc = C Left-Right Parser + pkgver = 0.9.4 + pkgrel = 1 + url = https://github.com/transceptor-technology/libcleri + arch = x86_64 + license = MIT + depends = pcre2 + source = https://github.com/transceptor-technology/libcleri/archive/0.9.4.tar.gz + source = makefile.targets.patch + md5sums = 6d386bfdc0bd6e312012968819fee66e + md5sums = 5033c2bd080fd8aed112e66c8ed7fa97 + +pkgname = libcleri + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46eded0c542b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: kusakata <shohei atmark kusakata period com> + +pkgname=libcleri +pkgver=0.9.4 +pkgrel=1 +pkgdesc="C Left-Right Parser" +url="https://github.com/transceptor-technology/libcleri" +license=('MIT') +arch=('x86_64') +depends=('pcre2') +source=("https://github.com/transceptor-technology/libcleri/archive/${pkgver}.tar.gz" "makefile.targets.patch") + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -N < ../makefile.targets.patch +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + cd ./Release + make all +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -d "${pkgdir}/usr/include" + install -d "${pkgdir}/usr/lib" + install -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}" + + cd ./Release + make INSTALL_PATH="${pkgdir}/usr" DESTDIR="/usr" install +} + +md5sums=('6d386bfdc0bd6e312012968819fee66e' + '5033c2bd080fd8aed112e66c8ed7fa97') diff --git a/makefile.targets.patch b/makefile.targets.patch new file mode 100644 index 000000000000..e679d4c8e5c7 --- /dev/null +++ b/makefile.targets.patch @@ -0,0 +1,13 @@ +--- makefile.targets 2017-11-28 18:37:46.000000000 +0900 ++++ makefile.targets 2017-12-22 01:20:13.484216058 +0900 +@@ -3,8 +3,8 @@ + @mkdir $(INSTALL_PATH)/include/cleri + @cp ../inc/cleri/*.h $(INSTALL_PATH)/include/cleri/ + @cp $(FN) $(INSTALL_PATH)/lib/$(FN).$(VERSION) +- @ln -s $(INSTALL_PATH)/lib/$(FN).$(VERSION) $(INSTALL_PATH)/lib/$(FN).$(MAJOR) +- @ln -s $(INSTALL_PATH)/lib/$(FN).$(VERSION) $(INSTALL_PATH)/lib/$(FN) ++ @ln -s $(DESTDIR)/lib/$(FN).$(VERSION) $(INSTALL_PATH)/lib/$(FN).$(MAJOR) ++ @ln -s $(DESTDIR)/lib/$(FN).$(VERSION) $(INSTALL_PATH)/lib/$(FN) + + + .PHONY: uninstall |