summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12022-02-24 02:06:51 +0800
committerChocobo12022-02-24 02:09:22 +0800
commit3f882c3dfd0e761b0d9ce356e482acfcbaa08cc9 (patch)
tree7b19bdcee40b531b2f83ff0296f68edc6c16fe67
downloadaur-hddtemp-git.tar.gz
newpkg: hddtemp-git 0.4.3.r1.gccaa1c0-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD51
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..94aa6aa56e9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = hddtemp-git
+ pkgdesc = Hard disk temperature tool
+ pkgver = 0.4.3.r1.gccaa1c0
+ pkgrel = 1
+ url = https://github.com/vitlav/hddtemp
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = glibc
+ provides = hddtemp
+ conflicts = hddtemp
+ source = git+https://github.com/vitlav/hddtemp.git
+ source = hddtemp.service::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/hddtemp/trunk/service
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = hddtemp-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dd3537419ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=hddtemp-git
+pkgver=0.4.3.r1.gccaa1c0
+pkgrel=1
+pkgdesc="Hard disk temperature tool"
+arch=('i686' 'x86_64')
+url="https://github.com/vitlav/hddtemp"
+license=('GPL')
+depends=('glibc')
+makedepends=('git')
+provides=('hddtemp')
+conflicts=('hddtemp')
+source=("git+https://github.com/vitlav/hddtemp.git"
+ "hddtemp.service::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/hddtemp/trunk/service")
+sha256sums=('SKIP'
+ 'SKIP')
+
+
+pkgver() {
+ cd "hddtemp"
+
+ _tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | head -n1)
+ _rev=$(git rev-list --count $_tag..HEAD)
+ _hash=$(git rev-parse --short HEAD)
+ printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
+}
+
+build() {
+ cd "hddtemp"
+
+ autoreconf -fi
+ ./configure \
+ --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --with-db-path="/etc/hddtemp.db"
+ make
+}
+
+check() {
+ cd "hddtemp"
+
+ make check
+}
+
+package() {
+ cd "hddtemp"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/hddtemp.service" -t "$pkgdir/usr/lib/systemd/system"
+}