diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-25 12:45:40 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-25 12:45:40 -0300 |
commit | 27cd560baa49d7eb685a5789cb915c5cdbdaf305 (patch) | |
tree | 03f7fdcdfa62b05dd9793f2809c20d6357c991c0 /pcr/expac-relative/PKGBUILD | |
parent | 88e1da204a82b0e8c0fa1a9e42ecd1b86a08eab8 (diff) | |
parent | c86852f13787f259167b1df6d3762ef78980cad3 (diff) |
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/expac-relative/PKGBUILD')
-rw-r--r-- | pcr/expac-relative/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/expac-relative/PKGBUILD b/pcr/expac-relative/PKGBUILD new file mode 100644 index 000000000..4f25e926b --- /dev/null +++ b/pcr/expac-relative/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 87501 2013-04-02 00:06:04Z dreisner $ +# Maintainer: Dave Reisner <d@falconindy.com> +# Maintainer (Parabola): Esteban Carnevale <alfplayer@mailoo.org> +# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> + +_pkgname=expac +pkgname=expac-relative +pkgver=3 +pkgrel=1 +pkgdesc="pacman database extraction utility, with dbpath and config options support" +arch=('i686' 'x86_64' 'mips64el') +url="http://github.com/falconindy/expac" +license=('GPL') +conflicts=$_pkgname +provides=$_pkgname +depends=('pacman') +makedepends=('perl') +source=("http://code.falconindy.com/archive/$_pkgname/$_pkgname-$pkgver.tar.gz"{,.sig} + 'add-options-dbpath-and-config.patch') +md5sums=('2f53f9663b69948a4a8bb03c1aa435a5' + 'SKIP' + '30539a5f7d1acbebb393535ae8ecf570') + +prepare() { + cd "$_pkgname-$pkgver" + + patch -Np1 -i "$srcdir/add-options-dbpath-and-config.patch" + + sed '/\*\//q' expac.c >LICENSE +} + +build() { + cd "$_pkgname-$pkgver" + + make +} + +package() { + cd "$_pkgname-$pkgver" + + make PREFIX=/usr DESTDIR="$pkgdir" install + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" +} + +# vim: ft=sh syn=sh |