diff options
author | Connor Behan | 2020-09-12 00:54:15 +0100 |
---|---|---|
committer | Connor Behan | 2020-09-12 00:54:15 +0100 |
commit | 725ec974b367697e777b984e7fab1fea9e181cdb (patch) | |
tree | 0485bb3322f183b95939fb7e87ab11c53bccead3 | |
download | aur-725ec974b367697e777b984e7fab1fea9e181cdb.tar.gz |
Moving this back to the AUR
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | LICENSE.pdf | bin | 0 -> 31300 bytes | |||
-rw-r--r-- | PKGBUILD | 49 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f64864bd78c1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = pdflib-lite + pkgdesc = PDF manipulation library. + pkgver = 7.0.5p3 + pkgrel = 4 + url = https://www.pdflib.com + arch = i686 + arch = x86_64 + license = custom:pdflib-lite + depends = glibc + provides = pdflib + source = https://ponce.cc/slackware/sources/repo/PDFlib-Lite-7.0.5p3.tar.gz + source = LICENSE.pdf + sha512sums = c33c330f22a9be7dc9a7a32f6fcabec37fe89c76105d4b870e94a0528c4de7885dcdeae775424e30aef9618d49f01d802dbece6f01451493a531bb2effb3f556 + sha512sums = a1d2324cca423a8dd95cb95772ef9600dbb65951d0fef90b79205c6303067dd7024c8c41936bf6e72258fcdcb747370f56912ae4c606c0d082d86be2f2b9d545 + +pkgname = pdflib-lite + diff --git a/LICENSE.pdf b/LICENSE.pdf Binary files differnew file mode 100644 index 000000000000..dfbf6a72ebe1 --- /dev/null +++ b/LICENSE.pdf diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..527995574945 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Connor Behan <connor.behan@gmail.com> +# Contributor: Olivier Mehani <shtrom-arch@ssji.net> + +pkgname=pdflib-lite +_pkgnamecaps=PDFlib-Lite +pkgver=7.0.5p3 +_basepkgver=${pkgver/p*/} +pkgrel=4 +pkgdesc="PDF manipulation library." +url="https://www.pdflib.com" +arch=('i686' 'x86_64') +depends=('glibc') +provides=('pdflib') +source=(https://ponce.cc/slackware/sources/repo/${_pkgnamecaps}-${pkgver}.tar.gz LICENSE.pdf) +license=(custom:pdflib-lite) + +build() { + cd "$srcdir"/$_pkgnamecaps-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir"/$_pkgnamecaps-$pkgver + make prefix="$pkgdir"/usr install + + ## Copy files required by the license + # Documentation + mkdir -p "$pkgdir"/usr/share/pdflib-lite/doc + cp ./doc/pdflib/* "$pkgdir"/usr/share/pdflib-lite/doc + + # License + mkdir -p "$pkgdir"/usr/share/licenses/pdflib-lite + cp -H ../LICENSE.pdf "$pkgdir"/usr/share/licenses/pdflib-lite/LICENSE.pdf + + # Examples + make -C ./bind/pdflib clean + cp -R ./bind/pdflib/{c,cpp,java} "$pkgdir"/usr/share/pdflib-lite + find "$pkgdir"/usr/share/pdflib-lite \( \ + -name Makefile \ + -o -name *.dsp \ + -o -name *.dsw \ + -o -name *.sln \ + -o -name *.vcproj \ + \) -exec rm {} \; +} + +sha512sums=('c33c330f22a9be7dc9a7a32f6fcabec37fe89c76105d4b870e94a0528c4de7885dcdeae775424e30aef9618d49f01d802dbece6f01451493a531bb2effb3f556' + 'a1d2324cca423a8dd95cb95772ef9600dbb65951d0fef90b79205c6303067dd7024c8c41936bf6e72258fcdcb747370f56912ae4c606c0d082d86be2f2b9d545') |