summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-05-11 02:50:06 +0800
committerChih-Hsuan Yen2018-05-11 02:50:06 +0800
commitbd0c27f456bbeb8142ac30c5a97ae95737e4e1af (patch)
tree88f19252067b7eba3a06ee3976becc8b691ab7ec
downloadaur-bd0c27f456bbeb8142ac30c5a97ae95737e4e1af.tar.gz
new package, version 2.5.0_beta1
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD45
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..647dedff21c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = macports-base
+ pkgdesc = The MacPorts command-line client
+ pkgver = 2.5.0_beta1
+ pkgrel = 1
+ url = https://www.macports.org/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = tcl
+ makedepends = rsync
+ depends = curl
+ depends = man
+ depends = nmtree
+ depends = openssl
+ depends = sqlite
+ optdepends = rsync: for syncing sources via rsync
+ backup = opt/local/etc/macports/archive_sites.conf
+ backup = opt/local/etc/macports/macports.conf
+ backup = opt/local/etc/macports/pubkeys.conf
+ backup = opt/local/etc/macports/sources.conf
+ backup = opt/local/etc/macports/variants.conf
+ source = https://github.com/macports/macports-base/releases/download/v2.5.0-beta1/MacPorts-2.5.0-beta1.tar.bz2
+ source = https://github.com/macports/macports-base/releases/download/v2.5.0-beta1/MacPorts-2.5.0-beta1.tar.bz2.asc
+ validpgpkeys = C403793657236DCF2E580C0201FF673FB4AAE6CD
+ sha256sums = 6cb15500d60c72e5356933a9db8de2bd037ec93a88873ce1ded0c900fd7d6caa
+ sha256sums = SKIP
+
+pkgname = macports-base
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..536183c2d54
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
+
+pkgname=macports-base
+pkgver=2.5.0_beta1
+pkgrel=1
+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')
+# 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=('tcl' 'rsync')
+optdepends=(
+ 'rsync: for syncing sources via rsync'
+)
+source=("https://github.com/macports/macports-base/releases/download/v${pkgver/_/-}/MacPorts-${pkgver/_/-}.tar.bz2"{,.asc})
+sha256sums=('6cb15500d60c72e5356933a9db8de2bd037ec93a88873ce1ded0c900fd7d6caa'
+ 'SKIP')
+validpgpkeys=(
+ 'C403793657236DCF2E580C0201FF673FB4AAE6CD'
+)
+backup=(opt/local/etc/macports/archive_sites.conf
+ opt/local/etc/macports/macports.conf
+ opt/local/etc/macports/pubkeys.conf
+ opt/local/etc/macports/sources.conf
+ opt/local/etc/macports/variants.conf)
+
+build() {
+ cd "MacPorts-${pkgver/_/-}"
+
+ ./configure --enable-readline
+ make
+}
+
+package() {
+ cd "MacPorts-${pkgver/_/-}"
+ make DESTDIR="$pkgdir" install
+
+ install -Ddm755 "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}