diff options
author | Deposite Pirate | 2018-09-17 11:16:24 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-17 11:16:24 +0200 |
commit | 878036fd265990ed7cbf399d256c4981e4cbc52a (patch) | |
tree | 4277ef1d189a9661e9d56004a5e7566f6fb2aa3a /since/PKGBUILD | |
parent | f590ac14a7da6f8c400dd5b5c0cfa91bb289c99d (diff) |
Add since.
Diffstat (limited to 'since/PKGBUILD')
-rw-r--r-- | since/PKGBUILD | 35 |
1 files changed, 35 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" +} |