Skip to content

Instantly share code, notes, and snippets.

@shizeeg shizeeg/PKGBUILD
Last active Dec 17, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.