Skip to content

Instantly share code, notes, and snippets.

@PseudoImplementation
Created October 30, 2014 03:16
Show Gist options
  • Save PseudoImplementation/2f8299f082a166832a8a to your computer and use it in GitHub Desktop.
Save PseudoImplementation/2f8299f082a166832a8a to your computer and use it in GitHub Desktop.
# Maintainer: Ferk <ferkiwi at gmail.com>
# Contributor: Shizeeque Unadequatov <shizeeque@gmail.com>
pkgname=imlib2-webp-git
_gitname=imlib2-webp
pkgver=20131015
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')
}
prepare() {
cd "${_gitname}"
sed -i -e 's,imlib2-config --libs),imlib2-config --libs | sed s/@my_libs@//g),g' makefile
}
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