summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--Makefile.patch27
-rw-r--r--PKGBUILD36
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..43509ccdf4e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = yacasl2
+ pkgdesc = A CASL II processing system
+ pkgver = 0.5p2
+ pkgrel = 1
+ url = https://github.com/j8takagi/YACASL2
+ arch = x86_64
+ license = MIT
+ depends = glibc
+ source = https://github.com/j8takagi/YACASL2/archive/v0.5p2.tar.gz
+ source = Makefile.patch
+ sha256sums = c4cfb58568f0e49dc16cd99cbb33a0f16f090d53f79b4a62835ef683f282b37e
+ sha256sums = 26c19ad47a56e355a89ef14caba0061c1d498853c45cbedc45e7c3e644bbafbc
+
+pkgname = yacasl2
+
diff --git a/Makefile.patch b/Makefile.patch
new file mode 100644
index 00000000000..e4d8b939db1
--- /dev/null
+++ b/Makefile.patch
@@ -0,0 +1,27 @@
+--- Makefile 2018-09-01 18:14:08.000000000 +0900
++++ Makefile.new 2018-11-12 10:45:11.440311195 +0900
+@@ -71,13 +71,13 @@
+
+ install: casl2 comet2 dumpword install-info
+ $(INSTALL) -d $(bindir)
+- $(INSTALL) $(CMD) $(bindir)/
++ $(INSTALL) $(CMDFILES) $(bindir)/
+
+ install-info:
+ $(MAKE) -C doc install-info
+
+ uninstall: uninstall-info
+- $(RM) $(prefix $(bindir)/,$(CMD))
++ $(RM) $(prefix $(bindir)/,$(CMDFILES))
+
+ version: $(VERSIONFILES)
+ @$(ECHO) "YACASL2 Version: $(VERSION)"
+@@ -93,7 +93,7 @@
+ clean: src-clean doc-clean doc_inner-clean
+
+ cmd-clean:
+- $(RM) $(CMD)
++ $(RM) $(CMDFILES)
+
+ src-clean:
+ $(MAKE) -sC src clean
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1942ac62292
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: LaFr4nc3 <lafr4nc3 at gmail dot com>
+pkgname=yacasl2
+pkgver=0.5p2
+pkgrel=1
+pkgdesc="A CASL II processing system"
+arch=('x86_64')
+url="https://github.com/j8takagi/YACASL2"
+license=('MIT')
+depends=('glibc')
+source=("https://github.com/j8takagi/YACASL2/archive/v$pkgver.tar.gz"
+ "Makefile.patch")
+sha256sums=("c4cfb58568f0e49dc16cd99cbb33a0f16f090d53f79b4a62835ef683f282b37e"
+ "26c19ad47a56e355a89ef14caba0061c1d498853c45cbedc45e7c3e644bbafbc")
+
+prepare() {
+ mv "${pkgname^^}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ patch -p0 -i "$srcdir/Makefile.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make install prefix="$pkgdir/usr"
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ install LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}