Skip to content

Instantly share code, notes, and snippets.

@shizeeg
Last active December 17, 2015 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shizeeg/5522108 to your computer and use it in GitHub Desktop.
Save shizeeg/5522108 to your computer and use it in GitHub Desktop.
WebP loader for imlib2. Arch Linux PKGBUILD.
# Maintainer: Ferk <ferkiwi at gmail.com>
# Contributor: Shizeeque Unadequatov <shizeeque@gmail.com>
pkgname=imlib2-webp-git
_gitname=imlib2-webp
pkgver=20121209
pkgrel=1
pkgdesc='A WebP loader for Imlib2. Enables WebP support for every application that uses the imlib2 library.'
arch=('i686' 'x86_64')
url='http://www.hauweele.net/~gawen/imlib2-webp.html'
license=('BSD')
depends=('imlib2' 'libwebp')
makedepends=('git')
provides=('imlib2-webp')
conflicts=('imlib2-webp')
source=('imlib2-webp::git+https://github.com/gawen947/imlib2-webp.git')
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
echo $(git log -1 --date=short | grep Date | sed 's/[^0-9]//g')
}
build() {
cd "${_gitname}"
make
}
package() {
cd "${_gitname}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
find "${pkgdir}" -type d -name .git -exec rm -r '{}' +
}
# vim: set ts=4 sw=4 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment