Skip to content

Instantly share code, notes, and snippets.

@usvi
Last active October 12, 2020 21:43
Show Gist options
  • Save usvi/28ceec3a3c48f9677831afab0ddc8df8 to your computer and use it in GitHub Desktop.
Save usvi/28ceec3a3c48f9677831afab0ddc8df8 to your computer and use it in GitHub Desktop.
Alpine Linux APKBUILD for Samsung splix drivers
# Contributor: Aurelien Crock
# Contributor: Till Kamppeter
# Maintainer: Janne Paalijarvi <jpaalija@gmail.remove.com>
pkgname=splix
pkgver=2.0.0
pkgrel=2
pkgdesc="Samsung printers CUPS support files"
url="http://splix.ap2c.org/"
arch="all"
license="GPL"
depends="cups cups-filters"
makedepends="cups-dev"
#install=""
#subpackages="$pkgname-dev $pkgname-doc"
source="http://deb.debian.org/debian/pool/main/s/splix/splix_2.0.0+svn315.orig.tar.gz
http://deb.debian.org/debian/pool/main/s/splix/splix_2.0.0+svn315-7.debian.tar.xz"
builddir="$srcdir"/splix-2.0.0+svn315.orig
prepare() {
patch -d "$srcdir"/splix-2.0.0+svn315.orig -p1 < ../debian/patches/0001-Fix-alignment-problem-on-armel.patch
patch -d "$srcdir"/splix-2.0.0+svn315.orig -p1 < ../debian/patches/0002-Set-IFS-when-looping-over-the-file-to-avoid-letting-.patch
patch -d "$srcdir"/splix-2.0.0+svn315.orig -p1 < ../debian/patches/0003-Fix-the-aready-already-typo.patch
# Omit 4th core debianisms pathc
patch -d "$srcdir"/splix-2.0.0+svn315.orig -p1 < ../debian/patches/0005-Use-compilers-passed-to-make.patch
default_prepare
}
build() {
# Replace with proper build command(s)
make DISABLE_JBIG=1
}
check() {
# Replace with proper check command(s)
:
}
package() {
# Replace with proper package command(s)
make DESTDIR="$pkgdir" install
}
sha512sums="3ea4cee4f24c44dacdc3d474e1b8c0bed016d6673f2a84a1b33b45d7746897a7511725f830748a90de7be0a6ae5f29a7364ab60f1683398c435af2cf46d84be7 splix_2.0.0+svn315.orig.tar.gz
451aa91f9d7d0e33e0bbc6e397143cdc02b66aa0d84cbfd0e2af22a2cea13bf5ad15582905f16e0708552d4746f12c6698ff5464f74194a81c2753fa655fb31a splix_2.0.0+svn315-7.debian.tar.xz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment