summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-09-15 00:55:20 +0800
committerChih-Hsuan Yen2018-09-15 00:55:20 +0800
commit395b0af4806955caf734a1622c64cb35bfe2f48e (patch)
tree5f2a0b59c007d839873eacfe405f5500568e8725
parent20ea13fad75d80a693775be55692c322c422294a (diff)
downloadaur-macports-base-git.tar.gz
enable readline
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD32
2 files changed, 22 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 00c4f7caa578..2ee60492e66a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,20 @@
pkgbase = macports-base-git
pkgdesc = The MacPorts command-line client
- pkgver = 2.4.0.beta1.r200.g9606edb0
- pkgrel = 1
+ pkgver = 2.5.0.beta1.r66.g8434c0ee
+ pkgrel = 3
url = https://www.macports.org/
arch = i686
arch = x86_64
license = BSD
makedepends = git
makedepends = tcl
- makedepends = rsync
+ makedepends = nmtree
depends = curl
- depends = man
- depends = nmtree
depends = openssl
depends = sqlite
optdepends = rsync: for syncing sources via rsync
- provides = macports-base=2.4.0.beta1.r200.g9606edb0
+ optdepends = nmtree: for building ports
+ provides = macports-base=2.5.0.beta1.r66.g8434c0ee
conflicts = macports-base
backup = opt/local/etc/macports/archive_sites.conf
backup = opt/local/etc/macports/macports.conf
diff --git a/PKGBUILD b/PKGBUILD
index 691fb25ccb7d..22e6b4f9088c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,19 @@
_pkgname=macports-base
pkgname=$_pkgname-git
-pkgver=2.4.0.beta1.r200.g9606edb0
-pkgrel=1
+pkgver=2.5.0.beta1.r66.g8434c0ee
+pkgrel=3
pkgdesc='The MacPorts command-line client'
url='https://www.macports.org/'
arch=('i686' 'x86_64')
license=('BSD')
-# man is used for `port help`
-depends=('curl' 'man' 'nmtree' 'openssl' 'sqlite')
+depends=('curl' 'openssl' 'sqlite')
# tcl: MacPorts comes with its own vendored tclsh, while a system interpreter
# is still needed to build tcllib
-# rsync: ./configure checks for `rsync` in $PATH and saves the value in
-# macports_autoconf.tcl, so this should be in makedepends, too
-makedepends=('git' 'tcl' 'rsync')
+makedepends=('git' 'tcl' 'nmtree')
optdepends=(
- 'rsync: for syncing sources via rsync'
+ 'rsync: for syncing sources via rsync'
+ 'nmtree: for building ports'
)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
@@ -29,24 +27,28 @@ backup=(opt/local/etc/macports/archive_sites.conf
opt/local/etc/macports/variants.conf)
pkgver() {
- cd "${_pkgname}"
+ cd $_pkgname
( set -o pipefail
- git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
)
}
build() {
- cd "$_pkgname"
+ cd $_pkgname
+
+ # provide paths manually so that these packages are not necessray during building
+ MAN=/usr/bin/man \
+ MTREE=/usr/bin/mtree \
+ RSYNC=/usr/bin/rsync \
+ ./configure \
+ --enable-readline
- ./configure
make
}
package() {
- cd "$_pkgname"
+ cd $_pkgname
make DESTDIR="$pkgdir" install
- install -Ddm755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}