mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-28 05:50:31 +01:00
Add 'nix/' from commit 'ab776c7602ed83562a45276d17df6bf99b913813'
git-subtree-dir: nix git-subtree-mainline:1ea52e54c8git-subtree-split:ab776c7602
This commit is contained in:
44
nix/PKGBUILD
Normal file
44
nix/PKGBUILD
Normal file
@@ -0,0 +1,44 @@
|
||||
# Maintainer: Alastair Pharo <asppsa at gmail dot com>
|
||||
# Co-Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
# Contributor: Felix Morgner <felix.morgner@gmail.com>
|
||||
# Contributor: Vlad M. <vlad@archlinux.net>
|
||||
# Contributor: Mario Rodas
|
||||
# Contributor: Oozyslug <oozyslug at gmail dot com>
|
||||
# Contributor: koral <koral at mailoo dot org>
|
||||
# Contributor: Anders Bennehag
|
||||
|
||||
pkgname=nix
|
||||
pkgver=2.3.12
|
||||
pkgrel=1
|
||||
pkgdesc="A purely functional package manager"
|
||||
arch=('i686' 'x86_64' 'armv7h')
|
||||
url="https://nixos.org/nix"
|
||||
license=('LGPL')
|
||||
depends=('gc' 'libsodium' 'boost' 'brotli' 'editline')
|
||||
optdepends=('archlinux-nix: tools to help with setup of Nix')
|
||||
makedepends=('bzip2' 'openssl')
|
||||
install=nix.install
|
||||
source=("https://nixos.org/releases/nix/nix-$pkgver/nix-$pkgver.tar.xz"
|
||||
'ldflags.patch')
|
||||
sha256sums=('213a7d49c461079b32361e4d008d248d7f68e34d2cc9347f3a8ff9029f9afb5d'
|
||||
'42350237d98785b30b0ee099405f2f1f7412f8a816162c22bd232ed3dbbe0305')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch --forward --strip=1 --input="${srcdir}/ldflags.patch"
|
||||
}
|
||||
|
||||
build () {
|
||||
cd "$pkgname-$pkgver"
|
||||
CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' ./configure --prefix=/usr \
|
||||
--libexecdir="/usr/lib/$pkgname" \
|
||||
--sysconfdir=/etc \
|
||||
--enable-gc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user