Commit 604ea5f3 authored by Troy Engel's avatar Troy Engel

use Makefile targets

parent 520216d0
......@@ -2,7 +2,7 @@
pkgbase=petrified
pkgname=('petrified' 'petrified-systemd')
pkgver=1.0.4
pkgver=1.0.5
pkgrel=1
changelog=petrified.archlog
arch=('any')
......@@ -10,7 +10,7 @@ url="https://github.com/troyengel/petrified"
license=('GPL3')
options=('emptydirs')
source=("https://github.com/troyengel/petrified/archive/v${pkgver}.tar.gz")
md5sums=('4a1ef8929c4b6d28c22b461797cfe71e')
md5sums=('SKIP')
package_petrified() {
pkgdesc="Bash client to update dynamic DNS at freedns.afraid.org"
......@@ -21,15 +21,7 @@ package_petrified() {
cd "${srcdir}/${pkgbase}-${pkgver}"
# Install the system bits
install -Dm0755 petrified "${pkgdir}/usr/bin/petrified"
install -Dm0644 petrified.1 "${pkgdir}/usr/share/man/man1/petrified.1"
install -Dm0600 petrified.conf "${pkgdir}/etc/petrified.conf"
install -dm0755 "${pkgdir}/var/cache/petrified"
# Install examples for the user
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}/extra"
install -m0644 README.pod "${pkgdir}/usr/share/doc/${pkgname}"
install -m0644 extra/* "${pkgdir}/usr/share/doc/${pkgname}/extra"
make DESTDIR="${pkgdir}" PREFIX=/usr install
}
package_petrified-systemd() {
......@@ -39,8 +31,5 @@ package_petrified-systemd() {
cd "${srcdir}/${pkgbase}-${pkgver}"
# Systemd files
install -dm0755 "${pkgdir}/usr/lib/systemd/system"
install -m0644 systemd/petrified.target systemd/petrified.timer \
systemd/[email protected] \
"${pkgdir}/usr/lib/systemd/system"
make DESTDIR="${pkgdir}" PREFIX=/usr install-systemd
}
......@@ -27,15 +27,7 @@ package_petrified-git() {
cd "${srcdir}/${pkgbase}-master"
# Install the system bits
install -Dm0755 petrified "${pkgdir}/usr/bin/petrified"
install -Dm0644 petrified.1 "${pkgdir}/usr/share/man/man1/petrified.1"
install -Dm0600 petrified.conf "${pkgdir}/etc/petrified.conf"
install -dm0755 "${pkgdir}/var/cache/petrified"
# Install examples for the user
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}/extra"
install -m0644 README.pod "${pkgdir}/usr/share/doc/${pkgname}"
install -m0644 extra/* "${pkgdir}/usr/share/doc/${pkgname}/extra"
make DESTDIR="${pkgdir}" PREFIX=/usr install
}
package_petrified-git-systemd() {
......@@ -47,8 +39,5 @@ package_petrified-git-systemd() {
cd "${srcdir}/${pkgbase}-master"
# Systemd files
install -dm0755 "${pkgdir}/usr/lib/systemd/system"
install -m0644 systemd/petrified.target systemd/petrified.timer \
systemd/[email protected] \
"${pkgdir}/usr/lib/systemd/system"
make DESTDIR="${pkgdir}" PREFIX=/usr install-systemd
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment