mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
|
|
|
|
pkgname=pacman-static
|
|
_pkgname=pacman
|
|
pkgver=3.2.2
|
|
pkgrel=1
|
|
pkgdesc="Static version of pacman executable"
|
|
arch=('arm')
|
|
url="http://www.archlinux.org/pacman/"
|
|
license=('GPL')
|
|
groups=('small-base')
|
|
depends=('pacman>=3.2.2')
|
|
makedepends=('pacman>=3.2.2' 'gettext')
|
|
options=(!libtool)
|
|
source=(ftp://ftp.archlinux.org/other/pacman/$_pkgname-$pkgver.tar.gz)
|
|
md5sums=('8404fc38566bb52f8eee2ea483a41051')
|
|
|
|
build() {
|
|
cd $srcdir/$_pkgname-$pkgver
|
|
echo 'SUBDIRS = src/pacman' > Makefile.am
|
|
|
|
sed -i -e 's/bin_PROGRAMS = pacman/bin_PROGRAMS = pacman.static/' \
|
|
-e 's|$(top_builddir)/lib/libalpm/.libs/libalpm.la|-lalpm|' \
|
|
src/pacman/Makefile.am
|
|
echo -e '\npacman_static_SOURCES = $(pacman_SOURCES)\npacman_static_LDFLAGS = $(LDFLAGS) -all-static' >> src/pacman/Makefile.am
|
|
touch ChangeLog ABOUT-NLS
|
|
aclocal || return 1
|
|
automake Makefile src/pacman/Makefile || return 1
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
}
|
|
|
|
# vim: set ts=2 sw=2 et:
|