summaryrefslogtreecommitdiff
path: root/pcr/gnustep-make/PKGBUILD
blob: 73e63bed01656c08690acd02cc806a29fb7f4a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$
# Maintainer (AUR): Vesa Kaihlavirta <vegai@iki.fi>
# Contributor (AUR): Sebastian Sareyko <public@nooms.de>

# parabola changes and rationale:
#  no changes.

pkgname=gnustep-make
pkgver=2.7.0
pkgrel=3
pkgdesc="The GNUstep make package"
arch=('x86_64' 'i686' 'armv7h') # See FS#29546
url="http://www.gnustep.org/"
license=('GPL')
depends=()
conflicts=('gnustep-make-svn')
groups=('gnustep-core')
backup=('etc/GNUstep/GNUstep.conf')
source=(https://github.com/gnustep/tools-make/archive/make-${pkgver//./_}.tar.gz)
sha256sums=('34fb9e848607e6d069bf10141d438c60e04d296a2501b2db1ba6ae28c57dbc56')

prepare() {
  cd "$srcdir"/tools-make-make-${pkgver//./_}
  for i in GNUSTEP_SYSTEM_ADMIN_TOOLS GNUSTEP_NETWORK_ADMIN_TOOLS GNUSTEP_LOCAL_ADMIN_TOOLS; do
    sed -i "s|@$i@|/usr/bin|g" GNUstep{,-strict-v2}.conf.in filesystem.{sh,csh,make}.in
  done
}

build() {
  cd "$srcdir"/tools-make-make-${pkgver//./_}
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --sysconfdir=/etc/GNUstep \
    --enable-native-objc-exceptions
  make
}

package() {
  cd "$srcdir"/tools-make-make-${pkgver//./_}
  make DESTDIR="$pkgdir" install
}