Package Details: printer-driver-ptouch 1.7.1-1

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: lgm
Last Packager: lgm
Votes: 7
Popularity: 0.000035
First Submitted: 2017-10-03 00:15 (UTC)
Last Updated: 2025-01-19 16:00 (UTC)

Required by (0)

Sources (1)

Latest Comments

lgm commented on 2025-01-19 17:43 (UTC)

Thank you for the updated PKGBUILD. @V10lator. As version 1.7.1 including the patch was released before I had the time to update this packages, I just updated to that version.

V10lator commented on 2025-01-17 04:25 (UTC)

Working 1.7:

# Maintainer: lgm <lgm dot aur at outlook dot com>  
# Contributor: Alexander Sulfrian <asulfrian at zedat dot fu-berlin dot de>

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"
    "https://github.com/philpem/printer-driver-ptouch/commit/b3c53b3bc4dd98ed172f2c79405c7c09b3b3836a.patch"
    )

    sha256sums=(
    '78835f354185421af3ba1fba3375cd475e54f10f10c44a5cccdc932ccbc5f75b'
    '81b73e103a384afccffee650e3e947fd28edb92af95dcb9206159043016bceb9'
    )

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    patch -p1 -i $srcdir/b3c53b3bc4dd98ed172f2c79405c7c09b3b3836a.patch
    autoreconf --force
    ./configure --prefix=/usr
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    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/"
}

lgm commented on 2025-01-05 16:18 (UTC)

Currently, the build of v1.7 is broken. The package will remain at v1.6 for the time being

simona commented on 2024-06-01 06:58 (UTC)

I can install now.

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).