summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a4c98f53564a9ac24e0e0b5f3f41041767d2abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: absrdspc <repom2@airmail.cc>
# Maintainer: Andreas Wagner <AndreasBWagner@pointfree.net>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>

pkgname=unbuffered
pkgver=2.2.0
pkgrel=1
pkgdesc="Copy stdin to stdout and stderr, unbuffered"
arch=('i686' 'x86_64')
url="http://www.scylla-charybdis.com/tool.php/${pkgname}"
license=('LicenseRef-CLL')
makedepends=('git')
depends=('glibc')
source=(${pkgname}-${pkgver}::"git+https://github.com/hilbix/unbuffered.git#tag=unbuffered-${pkgver}")
sha512sums=('SKIP')

build() {
  cd "$srcdir/${pkgname}-${pkgver}"
  git submodule update --init
  make ${pkgname}_version.h
  sed -i 's/\r//' $srcdir/${pkgname}-${pkgver}/unbuffered_version.h
  make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}"
  mkdir -p $pkgdir/usr/bin
  make INSTALLPATH=$pkgdir/usr install
  install -Dm644 COPYRIGHT.CLL "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: