summaryrefslogtreecommitdiff
path: root/pcr/openresolv-openrc/PKGBUILD
diff options
context:
space:
mode:
authorfreaj <freaj@riseup.net>2015-03-25 19:23:20 +0100
committerfreaj <freaj@riseup.net>2015-03-25 19:23:20 +0100
commitcc8df1c56153a2f6e703daff8fcdad469a9d2afa (patch)
treec9738db0d4e194990ff6e658302587c5145961a5 /pcr/openresolv-openrc/PKGBUILD
parent3d9ee3d1faab8fea2cdf06bc766106fe1479ed3c (diff)
downloadabslibre-cc8df1c56153a2f6e703daff8fcdad469a9d2afa.tar.gz
abslibre-cc8df1c56153a2f6e703daff8fcdad469a9d2afa.tar.bz2
abslibre-cc8df1c56153a2f6e703daff8fcdad469a9d2afa.zip
openresolv-openrc-3.6.1-6: add new package to [pcr]
Diffstat (limited to 'pcr/openresolv-openrc/PKGBUILD')
-rw-r--r--pcr/openresolv-openrc/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/openresolv-openrc/PKGBUILD b/pcr/openresolv-openrc/PKGBUILD
new file mode 100644
index 000000000..02bf2886c
--- /dev/null
+++ b/pcr/openresolv-openrc/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer : freaj <freaj@riseup.net>
+# Contributor (Manjaro): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor (Manjaro): Ignacio Galmarino <igalmarino@gmail.com>
+# Maintainer (Manjaro): Aaditya Bagga <aaditya_gnulinux@zoho.com>
+
+pkgname=openresolv-openrc
+_pkgname=openresolv
+pkgver=3.6.1
+pkgrel=6
+pkgdesc="resolv.conf management framework (resolvconf)"
+arch=(any)
+url="http://roy.marples.name/projects/openresolv"
+license=('custom:BSD')
+backup=(etc/resolvconf.conf)
+depends=(bash openrc-core)
+provides=(openresolv)
+conflicts=(openresolv)
+source=("http://roy.marples.name/downloads/openresolv/${_pkgname}-${pkgver}.tar.bz2"
+ fs33801.patch
+ openrc-path.patch)
+sha1sums=('03bbbe32e3763ed3a17f83c500469ddc5969bbe7'
+ '7d68b36dfd6c8f01f9bf21a726e82d4cffb48bca'
+ '69177771673976506c24b4dfb88fa15fadd36077')
+prepare() {
+ cd $_pkgname-$pkgver
+ patch -Np1 -i ../fs33801.patch
+ # For openrc path
+ patch -Np1 -i ../openrc-path.patch
+ sed -n '2,25{s:^# \?::;p}' resolvconf.in >LICENSE
+}
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/resolvconf --sbindir=/usr/bin
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+}
+