summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c21a0d35e4c022a78535aacf6e9f7a684e64fc9f (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
33
34
35
# Maintainer: xunhua.guo <xunhua.guo@gmail.com>
# Contributor: Ben <ben@ported.pw>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: royrocks <royrocks13@gmail.com>

pkgname=cups-bjnp
pkgver=2.0.3
pkgrel=4
pkgdesc='CUPS back-end for the canon printers using the proprietary USB over IP BJNP protocol'
arch=('i686' 'x86_64')
url='http://sourceforge.net/projects/cups-bjnp/'
license=('GPL')
depends=('libcups')
makedepends=('cups')
source=("http://downloads.sourceforge.net/sourceforge/cups-bjnp/cups-bjnp-${pkgver}.tar.gz")
sha256sums=('c914b2fd9d8e26ce22f2df6244d9defeec31ee9a5360f723eecb3b00f2168500')
# Disable LTO to suppress some compilation errors.
options=("!lto")

build() {
  cd cups-bjnp-${pkgver}

  # Patch for https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/Warning-Options.html#index-Wstringop_002dtruncation
  # sed -i 's/strncpy/memcpy/' bjnp-commands.c

  ./configure --prefix='/usr' --disable-Werror
  make
}

package() {
  cd cups-bjnp-${pkgver}

  make DESTDIR="${pkgdir}" install
}