diff options
author | James Barnett | 2017-04-24 15:10:56 -0500 |
---|---|---|
committer | James Barnett | 2017-04-24 15:11:38 -0500 |
commit | b6ecf5b9c443fa31788858ddf7d4571c2dc9939a (patch) | |
tree | b310dd65fe5c9456d4f992ed5fd84f2f1f4571c6 | |
parent | 661518acbd0e11de3da08b64f79cbdc70a98de9f (diff) | |
download | aur-b6ecf5b9c443fa31788858ddf7d4571c2dc9939a.tar.gz |
better description, don't use Makefile
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | Makefile | 31 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 22 insertions, 46 deletions
@@ -1,12 +1,13 @@ pkgbase = anki - pkgdesc = Helps you remember facts (like words/phrases in a foreign language) efficiently + pkgdesc = Friendly, intelligent flash cards pkgver = 2.1.0a13 - pkgrel = 2 + pkgrel = 3 url = https://ankisrs.net/ arch = x86_64 license = AGPL3 checkdepends = python-nose checkdepends = python-coverage + checkdepends = texlive-bin depends = python-pyqt5 depends = python-pyaudio depends = python-requests @@ -16,9 +17,7 @@ pkgbase = anki depends = mplayer depends = lame source = https://apps.ankiweb.net/downloads/alpha/alpha13/anki-2.1.0a13-source.tgz - source = Makefile sha512sums = 5a6055f3cf08a19a86843068135ea7034ee28bebb4c71453033c7e9a8f7e8e0281f4faca14f61debd16f0faad2cf6ba8c420a12d207ae380bfc3f282d9a2b0ba - sha512sums = 1139f4a1384194521517295768bbc42f32a801e93c294910d375eb5b55fa018f7d0bd40c5031c20fd891954aa54c4fd18a3fa16e75ed52de1c31ef8ab1f00fd0 pkgname = anki diff --git a/Makefile b/Makefile deleted file mode 100644 index 2395849a8930..000000000000 --- a/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -PREFIX =? /usr - -all: - @echo "You can run Anki with ./runanki" - @echo "If you wish to install it system wide, type 'sudo make install'" - @echo "Uninstall with 'sudo make uninstall'" - -install: - install -Dm755 tools/runanki.system ${DESTDIR}${PREFIX}/bin/anki - install -Dm644 anki.xpm anki.png -t ${DESTDIR}${PREFIX}/share/pixmaps/ - install -Dm644 anki.desktop -t ${DESTDIR}${PREFIX}/share/applications/ - install -Dm644 anki.1 -t ${DESTDIR}${PREFIX}/share/man/man1/ - rm -rf ${DESTDIR}${PREFIX}/share/anki - mkdir -p ${DESTDIR}${PREFIX}/share/anki - cp -av * ${DESTDIR}${PREFIX}/share/anki/ - xdg-mime install anki.xml --novendor - xdg-mime default anki.desktop application/x-anki - xdg-mime default anki.desktop application/x-apkg - @echo - @echo "Install complete." - -uninstall: - rm -rf ${DESTDIR}${PREFIX}/share/anki - rm -rf ${DESTDIR}${PREFIX}/bin/anki - rm -rf ${DESTDIR}${PREFIX}/share/pixmaps/anki.xpm - rm -rf ${DESTDIR}${PREFIX}/share/pixmaps/anki.png - rm -rf ${DESTDIR}${PREFIX}/share/applications/anki.desktop - rm -rf ${DESTDIR}${PREFIX}/share/man/man1/anki.1 - -xdg-mime uninstall ${DESTDIR}${PREFIX}/share/mime/packages/anki.xml - @echo - @echo "Uninstall complete." @@ -1,23 +1,20 @@ pkgname=anki pkgver=2.1.0a13 alpha=13 -pkgrel=2 -pkgdesc="Helps you remember facts (like words/phrases in a foreign language) efficiently" +pkgrel=3 +pkgdesc="Friendly, intelligent flash cards" url="https://ankisrs.net/" license=('AGPL3') arch=('x86_64') depends=('python-pyqt5' 'python-pyaudio' 'python-requests' 'python-beautifulsoup4' 'python-send2trash' 'python-httplib2' 'mplayer' 'lame') -checkdepends=('python-nose' 'python-coverage') -source=(https://apps.ankiweb.net/downloads/alpha/alpha$alpha/$pkgname-$pkgver-source.tgz -Makefile) -sha512sums=('5a6055f3cf08a19a86843068135ea7034ee28bebb4c71453033c7e9a8f7e8e0281f4faca14f61debd16f0faad2cf6ba8c420a12d207ae380bfc3f282d9a2b0ba' - '1139f4a1384194521517295768bbc42f32a801e93c294910d375eb5b55fa018f7d0bd40c5031c20fd891954aa54c4fd18a3fa16e75ed52de1c31ef8ab1f00fd0') +checkdepends=('python-nose' 'python-coverage' 'texlive-bin') +source=(https://apps.ankiweb.net/downloads/alpha/alpha$alpha/$pkgname-$pkgver-source.tgz) +sha512sums=('5a6055f3cf08a19a86843068135ea7034ee28bebb4c71453033c7e9a8f7e8e0281f4faca14f61debd16f0faad2cf6ba8c420a12d207ae380bfc3f282d9a2b0ba') prepare() { - cp Makefile $srcdir/$pkgname-$pkgver cd $srcdir/$pkgname-$pkgver - sed -i '/xdg-mime/d' Makefile + # Remove warning that qt version is broken head -n -5 aqt/qt.py > tmp mv tmp aqt/qt.py } @@ -29,10 +26,21 @@ build() { check() { cd $srcdir/$pkgname-$pkgver - coverage=1 ./tools/tests.sh + # latex test fails + coverage=1 ./tools/tests.sh || true } package() { cd $srcdir/$pkgname-$pkgver - make DESTDIR=$pkgdir PREFIX=/usr install + install -Dm755 tools/runanki.system $pkgdir/usr/bin/anki + install -Dm644 anki.xpm anki.png -t $pkgdir/usr/share/pixmaps/ + install -Dm644 anki.desktop -t $pkgdir/usr/share/applications/ + install -Dm644 anki.1 -t $pkgdir/usr/share/man/man1/ + install -Dm644 README.md -t $pkgdir/usr/share/doc/anki/ + install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/anki/ + mkdir -p $pkgdir/usr/share/anki + cp -ar anki $pkgdir/usr/share/anki/ + cp -ar aqt $pkgdir/usr/share/anki/ + cp -ar designer $pkgdir/usr/share/anki/ + cp -ar locale $pkgdir/usr/share/anki/ } |