aboutsummaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
authorCoelacanthus <[email protected]>2021-10-25 20:04:38 +0800
committerGitHub <[email protected]>2021-10-25 20:04:38 +0800
commita715a8e6956b20fc030eec8d50e9a7d89d097323 (patch)
tree384d1a09d3a09e48227b4bfead480181b5b19584 /repo
parentd990f45724b15ab43f226e7b5ecb953c4c0ce00c (diff)
feat: add pkg mozjpeg and wget2 (#6)
* feat: add pkg mozjpeg * feat: add pkg wget2 Signed-off-by: Coelacanthus <[email protected]>
Diffstat (limited to 'repo')
-rw-r--r--repo/mozjpeg/PKGBUILD44
-rw-r--r--repo/wget2/PKGBUILD54
2 files changed, 98 insertions, 0 deletions
diff --git a/repo/mozjpeg/PKGBUILD b/repo/mozjpeg/PKGBUILD
new file mode 100644
index 0000000..270e19e
--- /dev/null
+++ b/repo/mozjpeg/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: afontenot <[email protected]>
+# Contributor: Gaetan Bisson <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: Simone Sclavi 'Ito' <[email protected]>
+# Contributor: N30N <[email protected]>
+
+pkgname="mozjpeg"
+pkgver=4.0.3
+pkgrel=1
+pkgdesc="JPEG image codec with accelerated baseline decoding and superior encoding"
+url="https://github.com/mozilla/mozjpeg"
+license=("BSD")
+arch=("i686" "x86_64" "armv7h")
+depends=("glibc" "libpng")
+makedepends=("nasm" "cmake")
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha1sums=('8e9272a8ec1429638febd6897664c575bdd50ecb')
+
+provides=("libjpeg" "libjpeg.so" "turbojpeg" "libjpeg-turbo")
+conflicts=("libjpeg" "mozjpeg-git" "turbojpeg" "libjpeg-turbo")
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DENABLE_STATIC=FALSE -DPNG_SUPPORTED=TRUE -DWITH_JPEG8=TRUE .
+ make
+}
+
+# much too slow for default, can be enabled if desired
+#check() {
+# cd "${srcdir}/${pkgname}-${pkgver}"
+# make test
+#}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make \
+ DESTDIR="${pkgdir}" \
+ docdir="/usr/share/doc/${pkgname}" \
+ exampledir="/usr/share/doc/${pkgname}" \
+ install
+
+ install -D LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -m644 jpegint.h "${pkgdir}/usr/include"
+}
diff --git a/repo/wget2/PKGBUILD b/repo/wget2/PKGBUILD
new file mode 100644
index 0000000..85037bb
--- /dev/null
+++ b/repo/wget2/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Wilhelm Schuster <aur [aT] rot13 _dot_ io>
+pkgname=wget2
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Updated version of the popular wget URL retrieval tool"
+arch=('i686' 'x86_64')
+url="https://gitlab.com/gnuwget/wget2"
+license=('GPL3')
+depends=('pcre2' 'libidn2' 'zstd' 'brotli' 'xz' 'zlib' 'gpgme' 'bzip2' 'nghttp2' 'libpsl' 'gnutls' 'lzip')
+# libhsts is optional but not in any repository. I also don't feel the
+# motivation to package it myself since it requires regularly updating
+# the preload list. Leave a comment if you're interested in HSTS
+# preload support so that I can gauge interest.
+optdepends=("ca-certificates: HTTPS Downloads")
+checkdepends=('libmicrohttpd')
+makedepends=('gperf' 'python' 'doxygen' 'pandoc')
+conflicts=("$pkgname-git")
+source=("https://ftp.gnu.org/gnu/wget/${pkgname}-${pkgver}.tar.gz"{,.sig})
+sha256sums=('4fe2fba0abb653ecc1cc180bea7f04212c17e8fe05c85aaac8baeac4cd241544'
+ 'SKIP')
+validpgpkeys=("1CB27DBC98614B2D5841646D08302DB6A2670428")
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --with-openssl=no \
+ --with-ssl=gnutls \
+ --without-libhsts \
+ --without-libidn \
+ --without-pcre
+ make
+}
+
+check() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ make check
+}
+
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ make DESTDIR="$pkgdir/" install
+
+ # AFAICT wget2_noinstall is meant run `make check` before installing
+ # wget2 itself. Normally, wget2 links to libwget, which is located
+ # in /usr/lib and thus can't be resolved before wget2 is actually
+ # installed.
+ rm -f "$pkgdir/usr/bin/wget2_noinstall"
+}
+
+# vim:set ts=2 sw=2 tw=0 et: