summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86c817d71a0a6d9bdae6404ac8e044c7451c682c (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
# Maintainer: James-Adam Renquinha Henri <jarhmander@gmail.com>
# (mostly a ripoff of pantum-p2000-driver, with a few enhancements)
pkgname=pantum-p2200-p2500-driver
pkgver="1_80"
pkgrel=1
pkgdesc="Pantum P2200 and P2500 series drivers"
arch=('x86_64')
url="http://global.pantum.com/global/"
license=('proprietary')
depends=('cups')
makedepends=('unzip')
_basename="Pantum-P2200-P2500-Series-Linux-Driver-V${pkgver/_/-}"
_zipname="${_basename}.zip"
source=(
  "http://global.pantum.com/global/wp-content/uploads/2016/01/${_zipname}"
)
md5sums=('50de9a64560ff92cdfd14fd6cdf636a5')

build() {
  cd ${srcdir}

  unzip -p ${_zipname} | bsdtar xzf - "LinuxInstall/Resources/Pantum-P2500-Series-*.${CARCH}.deb"
  ar x LinuxInstall/Resources/Pantum-P2500-Series-*.${CARCH}.deb data.tar.gz
  mkdir -p ${pkgname}-${pkgver}
  bsdtar -xf data.tar.gz -C ${pkgname}-${pkgver}
}

package() {
  cd ${pkgdir}
  cp -a ${srcdir}/${pkgname}-${pkgver}/* .
}

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