summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc37a528995e81249f88125457842c57b3f6fea8 (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
# Maintainer: Jack Kamm <jackkamm@gmail.com>
pkgname=pantum-p2000-driver
pkgver="1.00_1"
pkgrel=3
pkgdesc="Pantum 2000 Series Linux Driver"
arch=('x86_64')
url="http://global.pantum.com/global/"
license=('proprietary')
depends=('cups')
makedepends=('unzip')
source=(
  "http://global.pantum.com/global/wp-content/uploads/2016/01/Pantum-P2000-Series-Linux-DriverUbutun12.04V1.00-1.zip"
)
md5sums=('0024556a55eacef3d63ed4478ea1490d')

build() {
  cd $srcdir

  unzip Pantum-P2000-Series-Linux-DriverUbutun12.04V1.00-1.zip
  # rename unzipped directory, otherwise bsdtar is sad
  mv ' Pantum 2000 Series Linux Driver (Ubutun12.04) V1.00' Pantum-P2000-Series-Linux-DriverUbutun12.04V1.00-1

  mkdir -p ${pkgname}-${pkgver}
  cd ./${pkgname}-${pkgver}

  bsdtar -xf "../Pantum-P2000-Series-Linux-DriverUbutun12.04V1.00-1/Pantum-0.3-1.${arch}.rpm"
}

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

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