summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTrevor Bergeron2019-09-06 15:36:20 +0000
committerTrevor Bergeron2019-09-06 15:36:20 +0000
commit0893db5f51cfcc45f91cf4afe5d81c7943423b72 (patch)
tree9903e71cbe1d3b0824b9639a0ed8fe22f49f87a2 /PKGBUILD
parent165ef9547631872ad2bb19a065c51e59f7f07e10 (diff)
downloadaur-atheme.tar.gz
Accomodate changed release archive format
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 8 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 33175ec1d3a..14644baab08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
# Original: Maxime Poulin <maxpoulin64@gmail.com>
-# Maintainer: Trevor Bergeron <trevor@sec.gd>
+# Maintainer: Trevor Bergeron <aur@sec.gd>
# Build options (yes/no/default)
_large_network=default
@@ -10,9 +10,9 @@ _cracklib=default
_ldap=default
pkgname=atheme
-pkgver=7.2.10_r2
_pkgver="7.2.10-r2"
-pkgrel=1
+pkgrel=2
+pkgver="${_pkgver//-/_}"
pkgdesc="IRC services"
arch=("i686" "x86_64")
url="http://www.atheme.org/atheme/"
@@ -32,18 +32,15 @@ backup=(
'etc/atheme/atheme.motd'
)
install=atheme.install
-source=("https://github.com/atheme/atheme/releases/download/v${_pkgver}/atheme-v${_pkgver}.tar.xz"
+source=("https://github.com/atheme/atheme/releases/download/v${_pkgver}/${pkgname}-v${_pkgver}.tar.xz"
"atheme.service"
)
sha256sums=('cceceb285283509c9f6dcb20eeb9b816db373a81b55fe49bc11a774b501d687d'
'ee9ad7658434451184872c21c7fd38196d22d1dfb6b1f37bcfaf8c363d50296f')
-pkgver() {
- echo "$_pkgver" >&2
- echo "$_pkgver" | tr - _
-}
-
build() {
+ cd "$srcdir/$pkgname-v$_pkgver"
+
_configure="./configure --prefix=/usr --enable-fhs-paths"
_configure+=" --sysconfdir=/etc/atheme --localstatedir=/var"
@@ -65,6 +62,8 @@ build() {
}
package() {
+ cd "$srcdir/$pkgname-v$_pkgver"
+
make DESTDIR="$pkgdir/" install
install -Dm0644 "$srcdir/atheme.service" "$pkgdir/usr/lib/systemd/system/atheme.service"