Skip to content

Instantly share code, notes, and snippets.

@marsam
Last active December 20, 2015 14:19
Show Gist options
  • Select an option

  • Save marsam/6145408 to your computer and use it in GitHub Desktop.

Select an option

Save marsam/6145408 to your computer and use it in GitHub Desktop.
PKGBUILD for libmaxminddb
# Maintainer: Mario Rodas <rodasmario2@gmail.com>
pkgname=libmaxminddb-git
_gitname=libmaxminddb
pkgver=r748.9472c2a
pkgrel=1
pkgdesc="C library for the MaxMind DB file format"
arch=('i686' 'x86_64')
url="https://github.com/maxmind/libmaxminddb"
license=('GPL')
depends=('glibc')
makedepends=('git')
conflicts=()
options=('!libtool')
provides=()
source=("$_gitname::git+https://github.com/maxmind/libmaxminddb.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_gitname"
rm -f ltmain.sh
autoreconf -fiv
./configure --prefix=/usr
}
package() {
cd "$srcdir/$_gitname"
make PREFIX=/usr DESTDIR="$pkgdir" install
}
# vim: ft=sh syn=sh et
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment