[arch-commits] Commit in wtf/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Mon Feb 24 13:02:05 UTC 2020


    Date: Monday, February 24, 2020 @ 13:02:05
  Author: kkeen
Revision: 580432

upgpkg: wtf 20200217-1

Modified:
  wtf/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-24 12:57:23 UTC (rev 580431)
+++ PKGBUILD	2020-02-24 13:02:05 UTC (rev 580432)
@@ -2,7 +2,7 @@
 # Contributor: Jeff Mickey <j at codemac.net>
 
 pkgname=wtf
-pkgver=20180621
+pkgver=20200217
 pkgrel=1
 pkgdesc="Acronym dictionary, with additions from NetBSD and wikipedia"
 arch=('any')
@@ -10,22 +10,28 @@
 license=('BSD')
 makedepends=('git')
 #source=("http://www.mu.org/~mux/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-source=("git+https://github.com/void-linux/netbsd-wtf#commit=b1e5be48"
+#source=("git+https://github.com/void-linux/netbsd-wtf#commit=b1e5be48"
+source=("https://sourceforge.net/projects/bsdwtf/files/wtf-$pkgver.tar.gz"
         "https://raw.github.com/keenerd/wtf/0623381d92b2c5d3e94b00c9eb06fb5d4d85d014/acronyms.computing"
         'LICENSE')
-md5sums=('SKIP'
+md5sums=('faa0c10db24767041217924a024424b5'
          '3d99862438ec7977ff8d7f4e3e5dd300'
          'abac213cf24e9d5cab4e8115441eb717')
 
-build() {
-  cd "$srcdir/netbsd-wtf"
-  make PREFIX='/usr'
+prepare() {
+  cd "$srcdir/wtf-$pkgver"
+  sed -i 's|/usr/share/misc/|/usr/share/wtf/|' wtf
 }
 
 package() {
-  cd "$srcdir/netbsd-wtf"
-  make install PREFIX='/usr' DESTDIR="$pkgdir"
-
+  cd "$srcdir/wtf-$pkgver"
+  install -Dm755 wtf      "$pkgdir/usr/bin/wtf"
+  install -Dm644 wtf.6    "$pkgdir/usr/share/man/man6/wtf.6"
+  install -Dm644 acronyms "$pkgdir/usr/share/wtf/acronyms"
+  install -Dm644 acronyms.comp   "$pkgdir/usr/share/wtf/acronyms.comp"
+  #install -Dm644 acronyms-o.fake "$pkgdir/usr/share/wtf/acronyms-o"
+  install -Dm644 acronyms-o.real "$pkgdir/usr/share/wtf/acronyms-o"
+  
   install -m644 ../acronyms.computing "$pkgdir/usr/share/wtf/"
   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list