Package Details: printer-driver-ptouch 1.6-2

Git Clone URL: https://aur.archlinux.org/printer-driver-ptouch.git (read-only, click to copy)
Package Base: printer-driver-ptouch
Description: P-Touch PT-series and QL-series printer driver for Linux (under CUPS)
Upstream URL: https://github.com/philpem/printer-driver-ptouch
Licenses: GPL
Submitter: AlexanderS
Maintainer: AlexanderS
Last Packager: AlexanderS
Votes: 7
Popularity: 0.011835
First Submitted: 2017-10-03 00:15 (UTC)
Last Updated: 2021-12-18 20:51 (UTC)

Required by (0)

Sources (1)

Latest Comments

blackout commented on 2024-01-23 11:02 (UTC) (edited on 2024-01-23 11:55 (UTC) by blackout)

No clue I got an error during build and had to remove the url in the xml (shouldn't be a problem I guess).

pkgname=printer-driver-ptouch
pkgver=1.7
pkgrel=1
pkgdesc='P-Touch PT-series and QL-series printer driver for Linux (under CUPS)'
arch=('i686' 'x86_64')
url='https://github.com/philpem/printer-driver-ptouch'
license=('GPL')

depends=('ghostscript')
makedepends=('autoconf' 'libcups' 'foomatic-db-engine')

source=("$pkgname-$pkgver.tar.gz::https://github.com/philpem/printer-driver-ptouch/archive/v$pkgver.tar.gz")
sha256sums=('78835f354185421af3ba1fba3375cd475e54f10f10c44a5cccdc932ccbc5f75b')

build() {
    cd "$srcdir/$pkgname-$pkgver"

    autoreconf --force
    ./configure --prefix=/usr
    sed -i '/<url>/d' printer/Brother-QL-600.xml
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"

    make DESTDIR="$pkgdir/" install

    # Compile and remove foomatic database
    mkdir -p "$pkgdir/usr/share/ppd/"
    echo "dummy dummy" > "$pkgdir/usr/share/foomatic/db/oldprinterids"
    FOOMATICDB="$pkgdir/usr/share/foomatic" foomatic-compiledb -t ppd -d "$pkgdir/usr/share/ppd/Brother/"
    rm -r "$pkgdir/usr/share/foomatic/"
}

AlexanderS commented on 2021-12-18 20:50 (UTC)

@blackout: Ah thanks, fixed. At first I had build it with a different download url and forgot to remove the temporary downloaded artifact after changing the url.

blackout commented on 2021-12-18 15:04 (UTC)

won't build you have to use these lines

sha256sums=('ee1b53cf89b63a065683456a58ba20c28c5d4c966c4ff8e0883601dbf35caa82') cd "$srcdir/printer-driver-ptouch-$pkgver"

AlexanderS commented on 2020-05-29 22:09 (UTC)

@x3a: Thanks for the message. I did not notice that there is a new version.

My patch was from a time where the repo was on bitbucket and the development was slowed down. I bumped the version and submitted my changes as a pull request.

x3a commented on 2020-05-27 17:23 (UTC)

This build fails during the make process while the current state of the projects git repository (7b13070b64f87bb432f84cc7d4826a126d2e8bc2) can be build properly. Why do you patch in functionality for the PT-2430PC during the package building instead of contributing your changes directly to the git repository?

grunix commented on 2020-03-03 19:58 (UTC)

the download of the driver package fails (repo deleted by developer).