summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorizzy2017-11-16 14:04:52 +0800
committerizzy2017-11-16 14:04:52 +0800
commit92efb1cb483856e6715d6bcdd4ee0a68d924878f (patch)
tree2eeab02c7a0c3fdef114d6471aa92f1ed241cc97 /PKGBUILD
downloadaur-linedict.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e741e5a8992
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Izzy
+
+pkgname=linedict
+pkgver=1.0
+pkgrel=1
+pkgdesc="A simple dictionary using Youdao webpage source"
+url="https://github.com/WingT/linedict"
+arch=('x86_64')
+license=('MIT')
+depends=('libxinerama' 'libxft' 'freetype2' 'pcre' 'curl')
+source=("$pkgname-$pkgver::git+https://github.com/WingT/linedict")
+sha256sums=('SKIP')
+
+build() {
+ cd $pkgname-$pkgver
+ make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 FREETYPEINC=/usr/include/freetype2
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}