Browse Source

Add Arch Linux resolvconf-override build script

master
Pekka Helenius 4 years ago
parent
commit
19a0c08bf8
1 changed files with 36 additions and 0 deletions
  1. +36
    -0
      arch_linux/resolvconf-override/PKGBUILD

+ 36
- 0
arch_linux/resolvconf-override/PKGBUILD View File

@ -0,0 +1,36 @@
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
pkgname=resolvconf-override
pkgver=11.7b292ef
pkgrel=1
pkgdesc='Override resolv.conf through environment variables'
arch=('any')
url='https://github.com/hadess/${pkgname}'
license=('Custom')
depends=('glibc')
makedepends=('git' 'meson' 'ninja')
source=("git+https://github.com/hadess/${pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
if [[ $(git describe) ]]; then
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
else
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
fi
}
build() {
cd "$pkgname"
sed -i "s/gettext-pseudolocale/${pkgname}/g" meson.build
mkdir build
cd build
meson ..
ninja
}
package() {
cd "$pkgname/build"
install -Dt ${pkgdir}/usr/lib/ -m0644 libresolvconf-override.so
}

Loading…
Cancel
Save