diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b533e596b021 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Alexander Kobel <a-kobel@a-kobel.de> + +pkgname=pfufs +pkgver=2.3.2 +pkgrel=1 +pkgdesc='Fujitsu fi series Image Scanner Driver for SANE' +url='http://imagescanner.fujitsu.com/global/dl/' +arch=('x86_64') +license=('custom') +depends=('sane') +install=pfufs.install +source=('http://origin.pfultd.com/downloads/IMAGE/fi/ubuntu/232/pfufs-ubuntu18.04_2.3.2_amd64.deb' + 'http://origin.pfultd.com/downloads/IMAGE/fi/ubuntu/232/P2U3-0200-02ENZ0.pdf' + 60-pfufs.rules + fujitsu.conf.patch + pfufs + pfufs.conf + pfufs.ini + pfufs.install + pfufs-post-sane-upgrade.hook + pfufs-pre-sane-upgrade.hook + simple-scan.conf) +sha256sums=('a738e350db54e2a80350d472667b6155f90632b37f3f7bc7136bc09a55287793' + '6c9e4829cfc3159f269a03b72e64ae6d5f03c8d5139c9ab230182224118334ac' + '116bbb87a658e7a5004c762e5f860897522d8077c5d4d2f2faeb79e7f45d7687' + 'c4552be508a4bf5f831c2143bc430f9dbe0dc50cca45326f0cd8089af3e1c240' + '36890d01da19034cfd7f0e8aa40672693cc2b8db2902c6e3755628ee36dd0e61' + 'c5fa4c0a211c69cb4a764cb6dfcc76443d86c1e27469295386db8194eee11f5b' + 'af03606af00cd90726b9d4fd5d7ccad1e1209399b7b668e523eedbf5e7c58521' + '37f40b8d6d59a6cef9b95c5d739b873878117de311ffadb3933185b2500dbc06' + 'eb8842571ce6cd505ff1175b6b9086a6b18bdc099594ee66586dd3dd22a398ca' + '66b98f15a828404e73d0b03f165b0811b54cb8a0fdd7a96c2c32e01fae1fb9d7' + '6aec8ca879208e25ce8678a9bb0ecf11ccecca3c5e82f6e07b25425a261cc732') + +prepare () { + cd "$srcdir" + tar xf data.tar.gz + + find . -type f -exec chmod 644 '{}' + + find . -type f -name 'License*' -exec chmod 444 '{}' + + find . -type f -name 'readme*' -exec chmod 444 '{}' + + cd opt/pfufs + chmod 755 bin/* consumables/* etc/pfufssysinfo.sh lib/* pfufsgetinfo/* +} + +package () { + cd "$srcdir" + + install -vDm 644 -t "$pkgdir/usr/share/libalpm/hooks" pfufs-{pre,post}-sane-upgrade.hook + install -vDm 644 -t "$pkgdir/opt/pfufs/etc/sane.d" fujitsu.conf.patch + + cp -pR opt/ usr/ "$pkgdir/" + install -vDm 644 -T P2U3-0200-02ENZ0.pdf "$pkgdir/usr/share/doc/$pkgname/pfufs.pdf" + + # from the deb's preinst + install -vDm 644 -t "$pkgdir/usr/lib/udev/rules.d" 60-pfufs.rules + + # TODO: create systemd service file for the scanbutton manager + + # from the deb's postinst + install -vDm 644 -t "$pkgdir/etc/sane.d/dll.d" pfufs + install -vDm 644 -t "$pkgdir/opt/pfufs/etc" pfufs.conf pfufs.ini simple-scan.conf + install -vDm 444 -t "$pkgdir/usr/share/licenses/$pkgname/" opt/pfufs/LicenseENU.txt + + install -d "$pkgdir/usr/bin" + ln -s -t "$pkgdir/usr/bin" /opt/pfufs/consumables/pfufsconsumables + ln -s -t "$pkgdir/usr/bin" /opt/pfufs/pfufsgetinfo/pfufsgetscerror + ln -s -t "$pkgdir/usr/bin" /opt/pfufs/pfufsgetinfo/pfufsgetscstatus +} |