Last active
December 19, 2015 14:08
-
-
Save flying-sheep/5966602 to your computer and use it in GitHub Desktop.
pdftk-bin & libgcj14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please report PKGBUILD bugs at | |
# https://github.com/ystein/archlinux-aur-packages | |
# Maintainer: Yannik Stein <yannik.stein [at] gmail.com> | |
pkgname='libgcj14' | |
pkgver=4.8.1_6 | |
pkgrel=1 | |
pkgdesc="Dynamically load and interpret java class files. Built from binary \ | |
executables available in Debian repositories. Please report PKGBUILD bugs at \ | |
https://github.com/ystein/archlinux-aur-packages." | |
url=http://gcc.gnu.org/java/ | |
arch=(i686 x86_64) | |
license=(GPL) | |
conflicts=(gcc-gcj) | |
if [ $CARCH = 'i686' ]; then | |
_DEBARCH=i386 | |
md5sums=(10b66e8345efd6c9bd405124e1b37609) | |
else | |
_DEBARCH=amd64 | |
md5sums=(ac36a2c9d574fa5f858092426a88d677) | |
fi | |
source=(http://ftp.de.debian.org/debian/pool/main/g/gcc-4.8/${pkgname}_${pkgver//_/-}_${_DEBARCH}.deb) | |
build() { | |
tar xf data.tar.gz | |
} | |
package() { | |
find -type f -name 'libgcj.so*' -execdir install -Dm755 {} $pkgdir/usr/lib/{} \; | |
# find newest library | |
NLIB="/"$(cd $pkgdir; find usr/lib -maxdepth 1 -type f -name 'libgcj.so*' | sort --reverse | head -1) | |
ln -s $NLIB $pkgdir/usr/lib/$pkgname.so | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please report PKGBUILD bugs at | |
# https://github.com/ystein/archlinux-aur-packages | |
# Maintainer: Yannik Stein <yannik.stein [at] gmail.com> | |
# Contributor: Dan Serban | |
# Submitter: Liu Chang <goduck777@gmail.com> | |
pkgname=pdftk-bin | |
pkgver=2.01_1 | |
pkgrel=1 | |
pkgdesc="Swiss army knife for PDFs. Built from binary executables available \ | |
in Debian repositories. Please report PKGBUILD bugs at \ | |
https://github.com/ystein/archlinux-aur-packages." | |
url=http://www.pdfhacks.com/pdftk | |
arch=(i686 x86_64) | |
license=(GPL) | |
depends=(libgcj14) | |
provides=(pdftk) | |
conflicts=(pdftk pdfchain-all-inclusive) | |
if [ $CARCH = 'i686' ]; then | |
_DEBARCH=i386 | |
md5sums=(ca4e27ddd81e5243ce5a836a2ae87fd8) | |
else | |
_DEBARCH=amd64 | |
md5sums=(2b4001e9e234292c1c86836ff3dd03de) | |
fi | |
source=(http://ftp.de.debian.org/debian/pool/main/p/pdftk/pdftk_${pkgver//_/-}_${_DEBARCH}.deb) | |
build() { | |
tar xf data.tar.gz | |
} | |
package() { | |
cp -r usr $pkgdir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment