# 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" }