From 878036fd265990ed7cbf399d256c4981e4cbc52a Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Mon, 17 Sep 2018 11:16:24 +0200 Subject: Add since. --- since/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 since/PKGBUILD (limited to 'since/PKGBUILD') 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 + +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" +} -- cgit v1.2.3-70-g09d2