summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--since/PKGBUILD35
-rw-r--r--since/since-1.1-makefile.patch21
2 files changed, 56 insertions, 0 deletions
diff --git a/since/PKGBUILD b/since/PKGBUILD
new file mode 100644
index 0000000..42d007d
--- /dev/null
+++ b/since/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
+
+pkgname=since
+pkgver=1.1
+pkgrel=1
+pkgdesc="Tail(1) with a state"
+arch=('i686' 'x86_64')
+url="http://welz.org.za/projects/since"
+license=('GPL3')
+source=("http://welz.org.za/projects/since/$pkgname-$pkgver.tar.gz"
+ 'since-1.1-makefile.patch')
+sha256sums=('739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45'
+ '3d6e50abf8faf968f243ac68019766c7451f0b2a845a8e1c10dc3a79b83f2b0c')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ # Fix the Makefile
+ patch -p1 -i ../since-1.1-makefile.patch
+
+ # User Arch Linux standard CFLAGS
+ sed -i 's|-Wall -O2|$(FLAGS)|g' Makefile
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ make FLAGS="${CFLAGS}"
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ make install prefix="${pkgdir}/usr"
+
+ install -Dm644 README "${pkgdir}/usr/share/doc/since/README"
+}
diff --git a/since/since-1.1-makefile.patch b/since/since-1.1-makefile.patch
new file mode 100644
index 0000000..1afafc7
--- /dev/null
+++ b/since/since-1.1-makefile.patch
@@ -0,0 +1,21 @@
+diff -r -u -N since-1.1/Makefile since-1.1-makefile/Makefile
+--- since-1.1/Makefile 2010-07-10 14:57:32.000000000 +0200
++++ since-1.1-makefile/Makefile 2018-08-28 02:27:47.326549381 +0200
+@@ -12,14 +12,14 @@
+
+ CC = gcc
+ RM = rm -f
+-INSTALL = install -D
++INSTALL = install
+
+ $(NAME): $(NAME).c
+ $(CC) $(CFLAGS) -o $@ $^
+
+ install: $(NAME)
+- $(INSTALL) $(NAME) $(prefix)/bin/$(NAME)
+- $(INSTALL) $(NAME).1 $(prefix)/share/man/man1/$(NAME).1
++ $(INSTALL) -Dm755 $(NAME) $(prefix)/bin/$(NAME)
++ $(INSTALL) -Dm644 $(NAME).1 $(prefix)/share/man/man1/$(NAME).1
+
+ clean:
+ $(RM) $(NAME) core *.o