Date: Wednesday, May 10, 2023 @ 07:59:37
Author: felixonmars
Revision: 1459694
archrelease: copy trunk to community-x86_64
Added:
smartdns/repos/community-x86_64/PKGBUILD
(from rev 1459693, smartdns/trunk/PKGBUILD)
Deleted:
smartdns/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 38 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-10 07:59:27 UTC (rev 1459693)
+++ PKGBUILD 2023-05-10 07:59:37 UTC (rev 1459694)
@@ -1,27 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: zlowly <[email protected]>
-
-pkgname=smartdns
-pkgver=41
-pkgrel=1
-pkgdesc="A local DNS server to obtain the fastest website IP for the best
Internet experience"
-arch=('x86_64')
-license=('GPL')
-url="https://github.com/pymumu/smartdns"
-backup=("etc/smartdns/smartdns.conf")
-depends=('gcc-libs' 'openssl')
-makedepends=('systemd')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pymumu/smartdns/archive/Release$pkgver.tar.gz")
-sha512sums=('85d8523f62f80533bdbdcaf3fd50e4b36cfb4898f8af6221cd06cae69fe9509d0a6a6f8ef4effee86c36caa5090f97d11b4fed4dabed66ad5d9b665f71247315')
-
-build() {
- cd smartdns-Release$pkgver/src
- make
-}
-
-package() {
- cd smartdns-Release$pkgver
- make DESTDIR="$pkgdir" RUNSTATEDIR=/run SBINDIR=/usr/bin install
-
- rm -r "$pkgdir"/etc/init.d
-}
Copied: smartdns/repos/community-x86_64/PKGBUILD (from rev 1459693,
smartdns/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-10 07:59:37 UTC (rev 1459694)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: zlowly <[email protected]>
+
+pkgname=smartdns
+pkgver=42
+pkgrel=1
+pkgdesc="A local DNS server to obtain the fastest website IP for the best
Internet experience"
+arch=('x86_64')
+license=('GPL')
+url="https://github.com/pymumu/smartdns"
+backup=("etc/smartdns/smartdns.conf")
+depends=('gcc-libs' 'openssl')
+makedepends=('systemd') # systemd.pc
+checkdepends=('gtest' 'bind')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pymumu/smartdns/archive/Release$pkgver.tar.gz")
+sha512sums=('7ad4ffbad056e84894dd23a18396afe6174a1137fa3edee4e12bf1487dd40d91158c89fd9e3c894603a51f639826acccdfdf1ddb8a25e77158dfe5bd54eb6f20')
+
+prepare() {
+ # Unfortunately upstream does not provide a way to reuse .o files
+ cp -a smartdns-Release$pkgver smartdns-Release$pkgver-test
+}
+
+build() {
+ cd smartdns-Release$pkgver
+ make RUNSTATEDIR=/run SBINDIR=/usr/bin
+}
+
+check() {
+ cd smartdns-Release$pkgver-test
+ make -C test test
+}
+
+package() {
+ cd smartdns-Release$pkgver
+ make RUNSTATEDIR=/run SBINDIR=/usr/bin DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir"/etc/init.d
+}